check out this , if block is not executing ............

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux