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++; } } ?>*/
_________________________________________________________________ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/