php - Output Mysql Result in Array -


I declare the variable in the $ array

my input

  $ array = array ('5', '4' , '21', '55', '97', '17'); $ Pid = implode (",", $ array); I am processing questions while using PID ** ($ row = mysql_fetch_array ($ result)) {} **  

How do I want

 <$> $ Array = array ("foo" = & gt; "bar", "bar" => "foo",);  

What can I do for this?

Good you want to customize your app separately. Then get the following code Can be useful -

  $ array = array (); ** while ($ line = mysql_fetch_array ($ result)) {array_push ($ array, "foo", "bar"); } **  

And here you can keep your value $ array one by one and the value and value of $ row .


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

c# - NewtonSoft JArray - how to select multiple elements with LINQ -

javascript - amcharts makechart not working -