Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [PHP-DB] data is not entering in created database
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
>
><?php
>if ($submit)
>    {
>    $db = mysql_connect("localhost","root");
>    mysql_select_db("dollar1_allinfo",$db);
>    mysql_query("INSERT INTO totalinfo (username,password,) VALUES ('$login
username','$loginpassword')");
>
>     echo 'thank you';
>     echo 'So Hurry Up';
>  }
>   ?>
>
>
>
>
>
>thank you.
>
>
>
>---------------------------------
>Do you Yahoo!?
> Yahoo! Mail - Easier than ever with enhanced search. Learn more.
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Graeme
12-24-04 08:55 PM


Re: [PHP-DB] data is not entering in created database
hallo,
this was working well , submit is evaluating true, no errors, but
now data is not shown in databse table

<?php
if($submit)
{

$dbh=mysql_connect ("localhost", "root") or die ('I cannot connect to the da
tabase because: ' . mysql_error());
mysql_select_db ("dollar1_allinfo");

mysql_query("INSERT INTO totalinfo (Username,Password) VALUES ('$loginuserna
me','$loginpassword')");
}
?>

what may be glitch





graeme <graeme_foster@sherubtse.edu.bt> 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
> 
> {
> $db = mysql_connect("localhost","root");
> mysql_select_db("dollar1_allinfo",$db);
> mysql_query("INSERT INTO totalinfo (username,password,) VALUES ('$loginuse
rname','$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
http://mail.yahoo.com

Report this thread to moderator Post Follow-up to this message
Old Post
Amol Patil
12-27-04 08:55 PM


Re: [PHP-DB] data is not entering in created database
error check it

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



bastien


>From: amol patil <ajp_3077@yahoo.com>
>To: graeme <graeme_foster@sherubtse.edu.bt>,Jochem Maas
><jochem@iamjochem.com>, php-db@lists.php.net
>Subject: Re: [PHP-DB] data is not entering in created database
>Date: Sat, 25 Dec 2004 22:41:01 -0800 (PST)
>
>hallo,
>this was working well , submit is evaluating true, no errors, but
>now data is not shown in databse table
>
><?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')");
>}
>?>
>
>what may be glitch
>
>
>
>
>
>graeme <graeme_foster@sherubtse.edu.bt> 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:
> 
>('$loginusername','$loginpassword')"); 
>
>
>
> ________________________________________
__________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com

Report this thread to moderator Post Follow-up to this message
Old Post
Bastien Koert
12-27-04 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP DB archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:30 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.