Re: I am a dullard

From: Date: Tue, 07 Jan 2003 15:14:41 +0000
Subject: Re: I am a dullard
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-130586@lists.php.net to get a copy of this message
On Wednesday 08 January 2003 02:09, Todd Barr wrote: > Okay...I am now having difficulty with putting things INTO the database. > > The form is on another page, and links to this one. > > <?php > $Host="localhost"; > $User="us34992a"; > $Password="******"; > $DBname="db34992a"; > $Link=mysql_connect ($Host, $User, $Password); > $db=mysql_select_db($DBname, $Link) > or die ("Unable to select database"); > $Query="INSERT into calendar values > > ('$meeting_name','$meeting_place','$meeting_date','$meeting_note')"; > $result=mysql_query($Query); > mysql_close ($Link); > ?> And what is the problem? What does $Query contain? After doing mysql_query() what does mysql_error() show? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Numbers talk, bullshit walks. - Dave Miller on linux-kernel */

« previous php.general (#130586) next »