Getting the values on the database and put it into an array without key,
I'm having a problem retrieving the value from the database and put it
into an array, I'm creating round robin scheduling system, for which the
teams is stored into the database, the problem is on how can I retrieve
those values and put it into the array,
Here's my piece of code on the sql;
$db_result = mysql_query("SELECT teams FROM game");
$row = mysql_fetch_array($db_result, MYSQL_NUM);
$read = $row[0];
And I want to put those values into this array:
$team = array ();
By the way I used to save to this method into a single row on the
database(example data only):
john,ken,mary,ben,mike
No comments:
Post a Comment