TSM.Mac Posted November 26, 2010 Share Posted November 26, 2010 I have made an autocomplete form... originally the values were static: $aUsers = array( "Adams, Egbert", "Altman, Alisha", "Archibald, Janna", ); Now I want the values from a database table DEVICES row name DeviceName: $sql = "SELECT DeviceName FROM DEVICES"; $res = mysql_query($sql); $aUsers = array(); while ($row = mysql_fetch_assoc($res)) { $aUsers[] = $row; } It will not display the values in my autocomplete form when text is entered.... but with static data it will. Im confused! Thank you Link to comment https://forums.phpfreaks.com/topic/219946-need-help-fetching-array-values-from-database-please/ Share on other sites More sharing options...
trq Posted November 26, 2010 Share Posted November 26, 2010 There is nothing syntactically wrong with your example. Mind telling us what the actual problem is? Link to comment https://forums.phpfreaks.com/topic/219946-need-help-fetching-array-values-from-database-please/#findComment-1140088 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.