[SOLVED] Link syntax trouble using db variable

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
cdickson
Forum Contributor
Posts: 120
Joined: Mon Apr 05, 2004 1:30 pm
Location: Michigan, USA

[SOLVED] Link syntax trouble using db variable

Post by cdickson »

Am trying to link to a variable, and I have successfully used this code previously:

Code: Select all

echo("<a href="updateorder.php?order_no={$row['order_no']}">$row["order_no"]</a>");
This time, however, I am getting the following parsing error:
Parse error: parse error, unexpected '\"', expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/michigan/www/www/updatelist.php on line 125
Can anyone tell me what I've done wrong? :?:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

echo("<a href="updateorder.php?order_no={$row['order_no']}">{$row["order_no"]}</a>");
cdickson
Forum Contributor
Posts: 120
Joined: Mon Apr 05, 2004 1:30 pm
Location: Michigan, USA

Post by cdickson »

Ah! Those pesky little brackets make a world of difference.

Thanks! :D
Post Reply