Re: Re: Stumped!

From: Date: Mon, 16 Dec 2002 19:22:32 +0000
Subject: Re: Re: Stumped!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128461@lists.php.net to get a copy of this message
You don't have a closing french brace for your while loop. ----- Original Message ----- From: <CSParker1@aol.com> To: <omar_campos@compusoluciones.com> Cc: <php-general@lists.php.net> Sent: Monday, December 16, 2002 12:57 PM Subject: Re: [PHP] Re: Stumped! Hmm, I am still getting a parse error on the last line of code... In a message dated 12/16/2002 1:49:26 PM Eastern Standard Time, omar_campos@compusoluciones.com writes: > $sql = "SELECT ....."; > $sql_e = mysql_query($sql); > > while ($result = mysql_fetch_array($query_e)) { > ..... > } > > You were missing the mysql_query > > > <CSParker1@aol.com> escribió en el mensaje > news:1ac.dcc37d7.2b2f791d@aol.com... > >I am trying to display a column from my database as a list. Each listing > >needs to be a URL that links to another script that brings up all of the > data > >in the row to edit. I keep getting a parser error and I can't figure it > out. > > Here is the code and any help is greatly appreciated. > > > ><?php > >$db = mysql_connect("localhost", "Uname", "PW"); > > > >$select_db = mysql_select_db("machmedi_meetingRequest",$db); > >$sql = "SELECT * FROM requests"; > > > >while ($result = mysql_fetch_array($query)) { > >$id= $result["id"]; > >$meetingName= $result["meetingName"]; > > > >echo ("<A > >HREF="/"edit.php?id='$id'\"">$meetingName</A> "); > >?> > > > > Christopher Parker Senior Corporate Technical Specialist, Corporate Events America Online Inc. Phone: 703.265.5553 Fax: 703.265.2007 Cell: 703.593.3199

« previous php.general (#128461) next »