this is my page ,,,,user id is not inserting in database please help;;;
<?php
/*session_start();
if(isset($_SESSION["currentuser"]))
{
$user=$_SESSION["currentuser"];}
include("connection.php");
if(isset($_POST['roomscheckboxes']))
{
$room = $_POST['roomscheckboxes'];
$n = count($room);
$i = 0;
echo "The Rooms you selected are \r\n";
while ($i < $n)
{
$name=(!session_is_registered(myusername));
$rdate=date ("Y/m/d");
$sql = "INSERT INTO `reservation`.`roomreservation` (`username`, `roomid`, `reservation_date`) VALUES ('$_SESSION['currentuser']','$room[$i]', \'$rdate')";
$result=mysql_query($sql);
echo "<li>{$room[$i]}</li> \r\n";
$i++;
}
}
?>*/
check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox.
More than messages