Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-17-2008, 05:16 AM   PM User | #1
NightFlyer
New Coder

 
Join Date: May 2008
Posts: 94
Thanks: 11
Thanked 0 Times in 0 Posts
NightFlyer can only hope to improve
Internet Explorer $Row

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:

PHP Code:
echo $row['title'] . '<a href="/forum/viewthreads.php?id=' $row['id'] . '">VIEW</a>';echo $row ['name']; 
NightFlyer is offline   Reply With Quote
Old 05-17-2008, 06:35 AM   PM User | #2
syosoft
Regular Coder

 
Join Date: Sep 2006
Location: Vermont, USA
Posts: 154
Thanks: 0
Thanked 6 Times in 6 Posts
syosoft is an unknown quantity at this point
By row i'm guessing you mean $row['name']. Replace that entire line with this...

PHP Code:
 echo $row['title'] . '<a href="/forum/viewthreads.php?id=' $row['id'] . '">'.$row['name'].'</a>'
__________________
Active PHP/MySQL application developer available for immediate work.
syosoft.com mavieo.com - Remote Web Site Administration Suite - Reseller Ready
syosoft is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:50 PM.


Advertisement
Log in to turn off these ads.