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 '<b>Name:</b> ' . $row['name'] . ' Hash: ' . $row['hash'] . ' Magnet: ' . $row['magnet'] .
' IP: ' . $row['ip'] . ' Port: ' . $row['port'] . ' Uploaded: ' . $row['uploaded'] .
' Downloaded: ' . $row['downloaded'] . ' Incomplete: ' . $row['incomplete'] . "<br>" . "\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:
. "<a href='http://www.magneturl.com/' title='text to show when hovering over link' >Magnet: </a>" .

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

132 user(s) are online (78 user(s) are browsing Support Forums)


Members: 0


Guests: 132


more...

Donat-O-Meter

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

Latest GitHub Commits