Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Help with a Dynamic PHP link
Old 06-23-2005, 08:01 AM Help with a Dynamic PHP link
Experienced Talker

Posts: 35
Trades: 0
I have this link:

PHP Code:
print("<td><a href="add_report.php?gameid=". $Row['gameid'] . "Test </a></td>"); 
In my code, but it throws up an error:

HTML Code:
Parse error: parse error, unexpected T_STRING in /home/sleaz/public_html/sycob/reports/fixtures.php on line 47
Any idea where it's wrong?

It should output:

www.whatevertheurl.com/add_report.php?gameid=

Then the game id?

Thanks

Chris
chrisb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-23-2005, 08:11 AM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
You need to escape the double quotes around the url since you are also using double quotes around the entire string. You escape the quotes using a backslash character like this:
PHP Code:
print("<td><a href=\"add_report.php?gameid="$Row['gameid'] . "\"> Test </a></td>"); 
Anacrusis is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with a Dynamic PHP link
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09733 seconds with 12 queries