![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
TSM.Mac
-
Posts
2 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Need Help Fetching Array Values from Database! Please! :))
in PHP Coding Help
Posted
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