Honey Hassan wrote:
this is my page ,,,,user id is not inserting in database please help;;;
- How does this relate to the subject of this mail. - What is your page? Do you mean the snippit of php code below? - How is this related to phpMyAdmin? You might be better of at a generic php mailing list. - You might wanna look at the quoting in your INSERT statement though.
<?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
http://www.microsoft.com/windows/windowslive/
Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel