drisate Posted April 16, 2009 Share Posted April 16, 2009 hey guys i rarely need to use arrays with databases but i need to get tho this result $aUsers = array( "Ädams, Egbert", "Altman, Alisha" ); but in a mysql loop ... i tryed this $safe_check = mysql_query("SELECT * FROM contact where user_id='$_GET[ref]'") or die (mysql_error()); while($temp = @mysql_fetch_array($safe_check)){ $aUsers[] = "$temp[name]"; } but thats not working Quote Link to comment https://forums.phpfreaks.com/topic/154352-solved-ez-array-question/ Share on other sites More sharing options...
drisate Posted April 16, 2009 Author Share Posted April 16, 2009 never mind, the code works. the problem was else where sorry ;-) Quote Link to comment https://forums.phpfreaks.com/topic/154352-solved-ez-array-question/#findComment-811481 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.