View Single Post
Old 01-11-2008, 02:54 PM   #12 (permalink)
ReSpawN
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote