On jeudi, mai 23, 2002, at 01:27 , Nick Wilson wrote:

>> I get a parse error on line 114 can anyone see the problem?
>>
>> Sorry if it is something obvious :}
>> for ($i=0; $i <$num_results; $i++)
>>
>> 110. {
>> 111. $row = mysql_fetch_array($result);
>> 112. echo '<a href="';
>> 113. echo $row['url'];
>> 114. echo '">';
>
> Have you tried escaping the double quotes?
> echo '\">';

No !
echo '\">';
will print :
\">
Your line 114 is good

I don't see the problem but why not code like this :

while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
        echo '<A HREF="' . $row['url'] . '">'.$row['site'].'</A>';
}

If you don't see where is your problem, try to comment some
lines. Start with line 114... and execute your script to see
what happened.

R.


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

Reply via email to