...

View Full Version : $Row



NightFlyer
05-17-2008, 06:16 AM
I want the row to be in a link.

EXAMPLE: Getting Threads out of the database.

A row called "Help Please" Will be linked to whatever link I want.

Here's what I got. As you can see, It says "VIEW" and that's the link but I want the row beside it to be link so VIEW doesn't have to be there.

Here:


echo $row['title'] . '<a href="/forum/viewthreads.php?id=' . $row['id'] . '">VIEW</a>';echo $row ['name'];

syosoft
05-17-2008, 07:35 AM
By row i'm guessing you mean $row['name']. Replace that entire line with this...



echo $row['title'] . '<a href="/forum/viewthreads.php?id=' . $row['id'] . '">'.$row['name'].'</a>';



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum