Why parse error in mysql command?
| From: | Andy Ziem | Date: | Sat, 02 Feb 2002 17:26:47 +0000 |
| Subject: | Why parse error in mysql command? | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-11796@lists.php.net to get a copy of this message | ||
Hi,
I am trying to retreive stored data, and I can't figure out why I receive
this PHP error--even after reading PHP documentation and looking at
examples--
"Parse error: parse error in c:\vol\php\e.php on line 10"
The following is my simplified code:
<?php
mysql_connect("localhost", "root");
mysql_select_db("volunteers");
$result = mysql_query("SELECT * FROM names WHERE id=$id");
&line = mysql_fetch_row(&result);
$first = $line["first"];
$middle = $line["middle"];
$last = $line["last"];
$street = $line["street"];
$city = $line["city"];
$zip = $line["zip"];
?>
--
Andy Ziem
Is Jesus Your Answer?
http://www.ChristianAnswers.net/gospel
----------------------------------------------------
Get a FREE E-Mail account at http://www.ACMEmail.net