|
-
Mar 4th, 2003, 05:14 PM
#1
Thread Starter
Fanatic Member
[Resolved]mysql to array
Ok I make a query in mysql:
"SELECT * FROM ibf_moderators WHERE forum_id='".$class->forum['id']."'"
and then I want to load the each of the id column values from ibf_moderators in my $cc_array.
$cc_array = array();
while( $r = mysql_fetch_array($result2))
{
ADD VALUE into the array here
}
How do I loop through my results adding the id column into my $cc_array?
Last edited by stickman373; Mar 9th, 2003 at 11:48 AM.
-
Mar 4th, 2003, 06:07 PM
#2
Stuck in the 80s
Re: mysql to array
Originally posted by stickman373
...
Code:
while($r = mysql_fetch_array($result2)) {
$cc_array[] = $r['value'];
}
-
Mar 4th, 2003, 08:30 PM
#3
Thread Starter
Fanatic Member
thanks for the help
Last edited by stickman373; Mar 4th, 2003 at 08:34 PM.
-
Mar 9th, 2003, 09:19 AM
#4
Conquistador
Could you please add "[resolved]" to the main title?
thanks...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|