2010-03-22, 04:08 PM
Hai
This is probably very very easy, but I just can't find much documentation on it...
I would like to do this as simple as possible in a functions in a plugin...
$query=mysql_query('SELECT field1, field2 FROM mybb_table');
while($temparray=mysql_fetch_assoc($query)){
$array1[]=$temparray['field1'];
$array2[]=$temparray['field2'];
}
thanks in advance
This is probably very very easy, but I just can't find much documentation on it...
I would like to do this as simple as possible in a functions in a plugin...
$query=mysql_query('SELECT field1, field2 FROM mybb_table');
while($temparray=mysql_fetch_assoc($query)){
$array1[]=$temparray['field1'];
$array2[]=$temparray['field2'];
}
thanks in advance