How do I generate an associative array like Jan => 10, Feb =>20 etc from a mysql table of 2 columns, month and val ?
ASK A QUESTION
More arrays PHP Questionshi, i am querying the DB as follows: $result=mysql_query("SELECT name,items FROM mytable WHERE user_id='$id'"); now,i want to create an array to insert the values that are as a result of this query e'g let's say this is the resultant data: n
I have an array of numbers and many repeat, how to list all items in order of maximum occurence?
How can I create an array of numbers easily?
How do I remove and view the last element of an array?
I tried to query a table and retrieve some data, then I email them to an indivisual person with different data. However, I am only to send the 1st email, but not 2nd email. My query seem that not able to pass the 1st data found and pass it for 2nd time