11-06-2009, 02:24 PM
|
#2 (permalink)
|
|
The Contributor
Join Date: Mar 2009
Location: US
Posts: 76
Thanks: 0
|
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
|
|
|
|