Re: query only returns one row

2003-01-08 Thread Sameh Attia
X wrote: Hmmm, this genereated the error message, "Parse error: parse error in /directory/connect.php on line 12" - Line twelve is the first "printf..." line. Any suggestions? Chris Here is corrected version: \n", $row["DBID"]); printf("First Name: %s\n",$row["FIRST_NAME"]);

RE: query only returns one row

2003-01-07 Thread X
3 7:04 AM To: [EMAIL PROTECTED] Subject: Re: query only returns one row Hi Chris, You need to use a while loop to fetch all of the records returned in the SELECT statement in PHP, as follows: \n", $row["DBID"]; printf("First Name: %s\n",$row[&q

Re: query only returns one row

2003-01-06 Thread Ferhat Can
["LAST_NAME"]; } ?> - Original Message - From: "Admin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 06, 2003 16:47 Subject: query only returns one row > > > Hi, > > I finally established a connection to my db

query only returns one row

2003-01-06 Thread Admin
Hi, I finally established a connection to my db after I realized that it was located in a different directory than that which I kept placing my php files. As some would say, "D'OH!" The code below is intended to select and display all 1300 names from the NAMES_TBL but is only returning the fir