Jump to content

getting the data through Mysql & want to store in array store data in array


Recommended Posts


I have a variable called $Price, We are getting it through Mysql Database using While loop. We getting the data from database in ordered by ID.

Now then i have requirement to store that data into Low to High form ...


Like we are receiving $price

lke unordered form ..









Here i just want to store it in Low to high form like 00, 14,25,35 ... and so on ..

Please suggest me the appropriate code.

While($myrow=mysql_fetch_array($result, MYSQL_ASSOC))

some codes 

return value $price.  // want to store in array 

$array($price) // here want to store in Low to high with key value.

Link to comment
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.