i was wondering if some1 know why this is refusing to work
Code:
$charshout = mysql_query("SELECT * FROM cq_user WHERE (`account_id` LIKE '".$_SESSION['id']."' )");
while ($user = mysql_fetch_assoc($charshout))
{
$i = $i+1;
$shoutpersonal[$i] = mysql_query("SELECT * FROM cq_ad_log WHERE (`user_name` LIKE '".$user['name']."') ORDER BY publish_time ASC LIMIT 5");
}
while($shouting = mysql_fetch_array($shoutpersonal[$i]))
{
so the db need to do a loop to get all characters and then show the amount of characters
the data get taken from 2 tables , first you have account id that start searching for the character id ( as account_id == Character , and character_id == shouts )
so first i need to get the character id , and need to loop that until it got all characters
then it need to loop to show the shouts of all characters , limiting to 5 shouts and show the character name
so far it is partial working , for 1 of other reason the loop is not working like it need to be
it only shows the second character or no data if there is no second character
i was wondering if some1 could provide me a working code for that
if more code is needed for the example , feel free to ask and i shal release the full code of the page i am trying to get working
if there is no code/solution for this , then i just change the way the data get displayed
Greetings From PowerChaos






