if i have a query that outputs with order
if the result = g, b, r, cCode:$query0 = mysql_query("SELECT name FROM mytable ORDER BY numVar"); $result0 = mysql_query($query0); while ($row0 = mysql_fetch_array($result0)){ $name = $row0['name']; }
how can i find the index number of say 'r' ?
is there a way of doing something like
Code:foreach ($sub as $key => $value) { }



Reply With Quote



Bookmarks