For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > December 2004 > how to set submit.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to set submit.
Amol Patil

2004-12-27, 3:55 pm

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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com