I Hate IE... I have to go through this stupid thing again... BTW, if count didn't return anything then how would it return data to the select statement as a field, regardless, here is the scenerio.
Two tables...
Name- Coulums (...)
Users - ID, Name
Numbers - ID, Number
Dispite the simplicity of this DB, It will work for this illustration.
Here's the code, the problem will follow...
<------------SNIP------------------------------>
if( $result = mysql_query( "select Users.Name, count(*) from Users, Numbers where Users.ID = Numbers.ID group by Users.Name" ) {
while( $rows = mysql_fetch_row( $Result ) ) {
Print "$row[0]: $row[1] Numbers";
}
} else {
// die or WHATEVER
}
<--------------/SNIP------------------------------>
So the whole problem is that if a user doesn't have any phone numbers then their name simply doesn't appear. IS THERE ANYWAY TO MAKE THESE PHONENUMBERLESS NAMES APEAR?
Been stuck on this one for a while... need suggestions... I don't think the count() + 0 suggestion is applicable here... I could be wrong... Don't have my server at hand so I can't run any tests at the moments....
Need help...