Friends, help me figure it out.
I have a request:
$result = mysql_query("SELECT * FROM multiplys WHERE sale = '$data_sale[id]'"); $multiply = mysql_fetch_array($result); I would like to parse the $ multiply array in another loop like this:
for($i = 0; $i < 30; $i++) { echo $multiply['0']['title']; } Immediately, I note that I need to parse exactly in my cycle, since it processes other data, please do not offer while ($ multiply = mysql_fetch_array (result)), since I need a specific option that I described.
In general, I want to get a two-dimensional array after executing the query to the database and parsing it in this form:
$multiply['0']['title'];
mysql_num_rowsand run through a cycle from 0 tomysql_num_rowsand there you already have to dofetch(result)... who doesn't give you that? - Alexey Shimanskymysql_fetch_array.... you make amysql_fetch_arraycycle for any soul in which you extract values to an array .... - Alexey Shimansky