01-11-2008, 02:54 PM
|
#12 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
This stuff is pretty basic so you should know it by now. If you don't, please save it, or repeat the method a couple of times.
PHP Code:
$femaleQuery = 'SELECT * FROM `coms`'; $maleQuery = mysql_query($femaleQuery);
while ($carRow = mysql_fetch_array($maleQuery)) { $senderName = $carRow['sender']; echo '<a href="msgs.php?member='.$_COOKIE[user].'">'.$senderName.'</a><br>'; }
This is the way if you want to echo more than 1 result in a row, table, tr, td, div or what ever. While, Foreach and stuff prints it out, so you should use this.
I have NOT tried it out but it is the most basic method I know and very solid. The query construction aside of course.
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|