The database data is dynamically inserted into an array randomly... waiting for online !!! At last, this post was edited by mahuatengBC from 2013-01-0911: 35: 57 to allow static write operations. However, I tried multiple methods dynamically... expert guidance ha $ totleArrarray (); $ totleArr & nbsp; array_merge (array_fill (database data is dynamically inserted randomly into the array... urgent online, etc !!!
This post was last edited by mahuatengBC at 11:35:57 on
Static data can be written, but dynamic data cannot be written after N methods are tried...
Expert guidance
$ TotleArr = array ();
$ TotleArr = array_merge (array_fill (0, 20, "ipad mini"), array_fill (0, 50, "Radio pressure cooker"), array_fill (0, 80, "Satan"), array_fill (0, 9850, "not winning "));
This is static code and can be implemented as required...
But how can we replace it with dynamic database data?
------ Solution --------------------
$ TotleArr = array ();
While ($ row = mysql_fetch_array ($ rs ))
{
$ TotleArr = array_merge (array_fill (0, $ row ['rate'], $ row ['name']);
}