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:
<?php
$db = mysql_connect("host", "user", "pwd");
mysql_select_db("dbname",$db);
$result = mysql_query("SELECT * FROM NAMES_TBL",$db);
while ($row = mysql_fetch_array ($result)) {
printf("DBID: %s<br>\n", $row["DBID"]);
printf("First Name: %s<br>\n",$row["FIRST_NAME"]);
printf("Last Name: %s<br>\n", $row["LAST_NAME"]);
}
?>
--
Sameh Attia
Senior System Engineer
T.E. Data
--
__ __ _
_________ _/ /_/ /_(_)___ _
/ ___/ __ `/ __/ __/ / __ `/
(__ ) /_/ / /_/ /_/ / /_/ /
/____/\__,_/\__/\__/_/\__,_/
"She who is in my mind and mouth, I love her with all my heart and blood"
We'll restore OUR Palestine
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php