how to set submit.

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

 



hallo,
 
clicking on submit entered info. is not entering in database.
 
how to set submit , so that query wll execute correctly. 
 
 
 
?php
  
 if($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());

}
?>
 
 
thank you.

		
---------------------------------
Do you Yahoo!?
 Send a seasonal email greeting and help others. Do good.

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

  Powered by Linux