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?
I suggest you use PDO class instead. mysql_* functions are not recommended anymore and will be deprecated in the (far) future.
An example is something like: