Jump to content

Need Help Fetching Array Values from Database! Please! :))


TSM.Mac

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.