Smells like you are using:
$select2 = mysql_query("SELECT * FROM `news` WHERE `author` = '$row1['username']'") or die(mysql_error());
$row2 = mysql_num_rows($select2);
...Which is not what i posted, i guess you just edited yours. If you did use mine (exactly mine) then just do this:
$var = $row1['username'];
$select2 = mysql_query("SELECT * FROM `news` WHERE `author` = '$var'") or die(mysql_error());
$row2 = mysql_num_rows($select2);
These are simple errors you should be able to fix yourself by now tbh.
Korndawg, on Oct 1 2006, 11:31 PM, said:
Mr. Matt, what I mean is it doesnt send me the array I want, as in the username in this case. It just sends me the word "Array". Ive backtracked into my phpMyAdmin and the query I ask it to do, should work. I just don't understand it.
That's because you are trying to echo an
array. You need to echo Array[Key]. Like: $row1['username']