check out this , if block is not executing ............
| From: | amol patil | Date: | Mon, 27 Dec 2004 13:54:03 +0000 |
| Subject: | check out this , if block is not executing ............ | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-37866@lists.php.net to get a copy of this message | ||
hallo ,
entered information still not shown in table of database
is below code is right ?
form name and type values are 'submit' . then
what is wrong with this code,
<?php
if(isset($_POST['submit']))
{
$dbh=mysql_connect ("localhost", "root") or die ('I cannot connect to
the database because: ' . mysql_error());
mysql_select_db ("dollar1_allinfo");
mysql_query("INSERT INTO totalinfo (Username,Password) VALUES
('$loginusername','$loginpassword')")or die (mysql_error());
}
?>
---------------------------------
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.