hey everybody,
this code works
echo $row["CATEGORY"]."(".$row["ENTRIES"].") </font></td>";
but this one doesn't, what wrong with this code?
echo "<a href="/testing.php?cmd=$row["CATEGORY"]&xxxx=$row["CATEGORY"].">(".$row["ENTRIES"].") </font></td>";
any help you could give me would be greatly appreciated
thanks
url in php coding
Moderator: General Moderators
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
change it to this:
syntax may be a little off. my caffeine is running low 
Code: Select all
echo "<a href="/testing.php?cmd={$rowї'CATEGORY']}&xxxx={$rowї'CATEGORY']}">({$rowї'ENTRIES']})</a> </font></td>";or to this
for moore info
http://www.php.net/manual/en/function.printf.php
Code: Select all
printf('<a href="testing.php?cmd=%s&xxxx=%s">("%s")</a></font></td>',
$rowї'CATEGORY'],$rowї'CATEGORY'],$rowї'ENTRIES']);http://www.php.net/manual/en/function.printf.php
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
or even to this:
Have a look at: http://www.php.net/manual/en/language.types.string.php
There's lots of ways to do strings.
Mac
Code: Select all
echo '<a href="/testing.php?cmd='.$rowї'CATEGORY'].'&xxxx='.$rowї'CATEGORY'].'">
('.$rowї'ENTRIES'].')</a></font></td>';There's lots of ways to do strings.
Mac