[snip]
for ($j = 0; $j < mysql_num_fields(result); $j++)
[/snip]

need to change this as well (forgot a $). should be:

for ($j = 0; $j < mysql_num_fields($result); $j++)


-----Original Message-----
From: John Nichel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 21, 2006 1:34 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Parse Error


Ray Cantwell wrote:
> Hi all,
> I am a noob and super confused right now. I have some really simple code 
> and i am getting an error that reads:
> *Parse error*: syntax error, unexpected T_VARIABLE in 
> */var/www/mysql_up.php* on line
> 
> here is the code:
> 
> <html>
> <head><title>Test MySQL</title></head>
> <body>
> <!-- mysql_up.php -->
> <?php
> $host="localhost"
> $user="ray"
> $password="*****"
<snip>

Terminate your php lines with a semi-colon ';'

-- 
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to