For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > December 2004 > data is not entering in created database









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 data is not entering in created database
Amol Patil

2004-12-24, 3:55 pm

hallo ,

i have wriiten simple php script , below.
created databse "dollar1_allinfo" with table 'totalinfo'

but on clicking submit button ,

information entered is not entering in database.

also, echo statements are also not displaying after submit

<?php
if ($submit)
{
$db = mysql_connect("localhost","root");
mysql_select_db("dollar1_allinfo",$db);
mysql_query("INSERT INTO totalinfo (username,password,) VALUES ('$loginusername','$loginpassword')");

echo 'thank you';
echo 'So Hurry Up';
}
?>





thank you.



---------------------------------
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.
Sponsored Links







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

Copyright 2008 codecomments.com