error check it

mysql_query("INSERT INTO totalinfo (Username,Password) VALUES
('$loginusername','$loginpassword')")or die (mysql_error());


From: amol patil <[EMAIL PROTECTED]>
To: graeme <[EMAIL PROTECTED]>,Jochem Maas <[EMAIL PROTECTED]>,
Subject: Re: [PHP-DB] data is not entering in created database
Date: Sat, 25 Dec 2004 22:41:01 -0800 (PST)

this was working well , submit is evaluating true, no errors, but
now data is not shown in databse table


$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')");

what may be glitch

graeme <[EMAIL PROTECTED]> wrote:
I suspect that your $submit is not set up, try the following echo
statements before the if statement:

echo "--$submit--";
echo "--$_POST["submit"]--";

amol patil wrote:

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

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around

-- PHP Database Mailing List ( To unsubscribe, visit:

Reply via email to