Jump to content

TSM.Mac

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Posts posted by TSM.Mac

  1. 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

×
×
  • 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.