Shouldn't
&line = mysql_fetch_row(&result);
read
$line = mysql_fetch_row(&result);  ??

If its not this then check for missing off the final } on an if
statement-gets me quite often!


LJ

"Andrew Ziem" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
>
>
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to