Hi again,
Sorry to ask another question 🙂
$userquery = mysql_query("SELECT * FROM table GROUP BY author LIMIT $page, 10");
while ($userrow = mysql_fetch_assoc($userquery))
{
// Select second database
mysql_select_db($dbname2, $connect);
$usernamequery = mysql_query("SELECT * FROM user WHERE userid='$userrow[author]'");
What I'd like to do is order my results, alphabetically or maybe even the date a user joined. But for this thread, just presume I want the results ordering alphabetically 🙂
Anyway, my problem. There are two databases. I query one of them to get users who have contributed something, and the other one to get their details such as their username (the first query only gets their userid). This means that I can't order them, as the query to the second database will only return one result.
Hopefully you'll understand me, I've tried to explain it best I can anyway 🙂
Please could somebody help?
Thanks,
Mike