RE: [PHP] Syntax Snag need extra eyes
| From: | Bob McConnell | Date: | Thu, 16 Jul 2009 16:19:08 +0000 |
| Subject: | RE: [PHP] Syntax Snag need extra eyes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295473@lists.php.net to get a copy of this message | ||
From: Miller, Terion
> I'm almost there with my little pagination script but now I'm hung on
the
> "Unexpected T_Variable" error...which in the past has been a
semi-colon
> missing so I'm not sure why this is throwing it...eyes please:
>
> printf('<a
>
href="view.php?name=$row['name']"><b>%s</b><br>%s</br><br></a>',$row['na
me']
> ,$row['address']);
It looks like you have nested single quotes. You probably need to escape
the inside set.
Bob McConnell