Jump to content

DISTICT command retrieves only ONE instance?


Nas[wD]

Recommended Posts

I get the following from the code:

3 from Nasonix

1 from Ducky

3 from Nasonix

3 from Nasonix

 

when really I want just:

3 from Nasonix

1 from Ducky

 

could anyone help me out? i can't figure this 1 out for the life of me! thanks guys

 

	$query = "SELECT * FROM forum_replys WHERE forum_reply_area = '$t'";
	$result = mysql_query($query) or die(mysql_error());
	while($row1 = mysql_fetch_array($result)) {
	extract($row1);

    $test = countreplysperuser("$t", $row1["forum_reply_author"]);
        
    echo "$test from $row1[forum_reply_author]<br>";
    
    }

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.