Re: Links to dynamic pages[Scanned]
| From: | Steven M | Date: | Wed, 07 May 2003 15:55:00 +0000 |
| Subject: | Re: Links to dynamic pages[Scanned] | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146691@lists.php.net to get a copy of this message | ||
Hi Michael
I edited my code as suggested but got an error:
Parse error: parse error, expecting
T_STRING' or T_VARIABLE' or
`T_NUM_STRING' in line 22
Line 22 is the one with the link code. Any ideas?
Many thanks
Steven
"Michael Egan" <MEgan@3tc.org.uk> wrote in message
news:9926D602EE82FB4FB203E442253043C41F19E8@snip-exch.snipdom.co.uk...
Steven
The data within the sdate field will need to be turned into a hypertext
link, eg:
echo "<TD><a
href='template.php?userid=".$row['userid']."'>".$row['sdate']."</a></TD><TD>
".$row['sname']."</TD>\n";
When the template.php page is called it will pass the value of the relevant
userid field and you can use this to do a further select query with which to
populate the content of the template page.
HTH,
Michael Egan