•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 456,572 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,636 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 962 | Replies: 9 | Solved
![]() |
•
•
Join Date: Oct 2007
Location: malta
Posts: 19
Reputation:
Rep Power: 2
Solved Threads: 0
Hi this might sound like a simple question to most but it is something that i have been trying for quiet a while. I have a table in mysql, which contains a name of a football match, date, time , and one of the variables is a link address to another page which contains photos. i would like to know who to write the code in php, so that when the list of matches comes up, one can choose the line he/she would like to see see, by clicking on the desired hyperlink.
to understand better what i am trying to say please visit this link http://www.dragon64.net/schedule1.php.
I would like that the photos variable would be clickable taking the user to the desired page
patrick
to understand better what i am trying to say please visit this link http://www.dragon64.net/schedule1.php.
I would like that the photos variable would be clickable taking the user to the desired page
patrick
Assuming your PHP code is correct the following should work:
<td><a href="$row_schedule['photos']"><?php echo $row_schedule ['photos']; ?> </a></td>
•
•
Join Date: Oct 2007
Location: malta
Posts: 19
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
Assuming your PHP code is correct the following should work:
<td><a href="$row_schedule['photos']"><?php echo $row_schedule ['photos']; ?> </a></td>
hi
i uploaded the script you suggested but still i have the same error, when i click on the result that comes from the database, the system does not link to the proper link.
you can have a look at the page in question http://www.dragon64.net/schedule1.php and see what happens.
thank you in anticipation for your assistance
•
•
Join Date: Oct 2007
Location: malta
Posts: 19
Reputation:
Rep Power: 2
Solved Threads: 0
•
•
•
•
try this.
<td><a href=<?php print "$row_schedule['photos']; ?>"><?php print $row_schedule ['photos']; ?> </a></td>
This is what i got when i tried the above
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/d/r/a/dragonaquarius/html/schedule1.php on line 149
•
•
•
•
This is what i got when i tried the above
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/d/r/a/dragonaquarius/html/schedule1.php on line 149
didnt work coz you didnt drop the space there after row_schedule..
not my problem.
Do a favour, leave me alone
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- jsp and mysql (JSP)
- SQL Server vs MYSQL vs MSQL (i'm stopping now) (MS SQL)
- MySQL for this forum ... (MySQL)
- MySQL vs. PostgreSQL (MySQL)
- MySQL-Front - Graphical Interface for MySQL (MySQL)
Other Threads in the PHP Forum
- Previous Thread: php file export issue
- Next Thread: ffmpeg


Linear Mode