In my php code I take data from the database and I put to a specific values of the Array:
$from_db=mysql_query(" SELECT * FROM ... ");
while ($row = mysql_fetch_array($from_db)) {
$number_id[]=$row['number_id'];
...
}
And now I would like add this line (for other purposes) before comand "while":
$from_db = mysql_fetch_array($from_db);
How can I change this line: while ($row = mysql_fetch_array($from_db)) { to process an array instead of a raw data from database?
$from_dbto cache, but I got an error, so I needed convert mysql_query to an Array, put in into cache and after that process.mysql_query(" SELECT * FROM ... ")into cache. But mysql_query result need to be converted to an Array before will be saved on a disk for future use.