View Single Post
Old 11-06-2009, 02:24 PM   #2 (permalink)
ioan1k
The Contributor
 
ioan1k's Avatar
 
Join Date: Mar 2009
Location: US
Posts: 76
Thanks: 0
ioan1k is on a distinguished road
Default

php Code:
$new = $new['username'];

echo "Our newest member is <a href='$news/'>$new</a><br />';

It's very simple, the variable $new becomes the username from the SQL Query :)

And as far as using the same variable for each line, it will make no difference, but it is bad practice, as any data in the variable will be overwritten, especially in this case for pulling SQL Results
__________________
My Portfolio - Work - Need freelance Work?
I've been developing 5 years now, and I learn something new everyday
ioan1k is offline  
Reply With Quote
The Following User Says Thank You to ioan1k For This Useful Post:
Dave (11-06-2009)