Re: I am a dullard

From: Date: Tue, 07 Jan 2003 17:30:42 +0000
Subject: Re: I am a dullard
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-130619@lists.php.net to get a copy of this message
Try, $Query="INSERT into calendar (meeting_name, meeting_place, meeting_date, meeting_note) values ('$meeting_name','$meeting_place','$meeting_date','$meeting_note')"; Hope this helps, Hugh ----- Original Message ----- From: "Jason Wong" <php-general@gremlins.biz> To: <php-general@lists.php.net> Sent: Tuesday, January 07, 2003 7:14 AM Subject: Re: [PHP] I am a dullard > 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 > */ > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#130619) next »