MYSQL into Array
Posted: Tue Mar 04, 2003 4:08 pm
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?
"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?