1
eric235u
php: how to echo some text as a link?
  • 2007/2/9 15:29

  • eric235u

  • Not too shy to talk

  • Posts: 149

  • Since: 2004/12/19


hi all. here's a beginners php question. i want to display "magnet" as a link instead of just text. how to do that? i keep screwing it up. tia.

...
while ($row = $xoopsDB->fetchArray($resultMagnet)) {
echo 'Name: ' . $row['name'] . ' Hash: ' . $row['hash'] . ' Magnet: ' . $row['magnet'] .
' IP: ' . $row['ip'] . ' Port: ' . $row['port'] . ' Uploaded: ' . $row['uploaded'] .
' Downloaded: ' . $row['downloaded'] . ' Incomplete: ' . $row['incomplete'] . "
" . "\n";

2
skenow
Re: php: how to echo some text as a link?
  • 2007/2/10 6:08

  • skenow

  • Home away from home

  • Posts: 993

  • Since: 2004/11/17


Quote:
. "Magnet: " .

instead of Quote:
. 'Magnet: ' .

3
eric235u
Re: php: how to echo some text as a link?
  • 2007/2/12 15:04

  • eric235u

  • Not too shy to talk

  • Posts: 149

  • Since: 2004/12/19


thanks man. i also bugged some guys at a local php group. funny how i get stuck on little things. works as you suggested.


Login

Who's Online

365 user(s) are online (310 user(s) are browsing Support Forums)


Members: 0


Guests: 365


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits