Thread: Forum help
View Single Post
Old 12-17-2007, 04:35 PM   #1 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default Forum help

Heya, you might have seen my thread ..

Anyways, I'm just wondering if this is OKAY:
php Code:
$i = 1;
               
                while($thread = mysql_fetch_array($query)) {
                   
                    $this->threads_details[$i] = $thread;
                   
                    $i++;
                   
                }

I want the thread_details array to be like this:

Code:
thread_details[1] => array('thread_id' = 43, 'thread_posts' = 25, 'thread_views' = 656, 'thread_author' = 'Tanax')
thread_details[2] => array('thread_id' = 25, 'thread_posts' = 78, 'thread_views' = 1656, 'thread_author' = 'Wildhoney')
Get the point??
Tanax is offline  
Reply With Quote