PHP5.01 and HTML

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello everyone.  I have the following script that creates a listbox.  My box
appears, but I can't get any data into it.  Can someone let me know what I'm
doing wrong.

    <SELECT name="Company List" multiple size="8">
    <?php
      $db = new COM("ADODB.Connection");
      $dsn = "DRIVER=SQL Server; SERVER=D63WV941;UID=sa;PWD=sa;
DATABASE=BINDER";
      $db->Open($dsn);
      $rs = $db->Execute("SELECT * from company");
      while (!$rs->EOF)
      {
        $Name = $rs->Fields['Name']->Value;
        // This doesn't get listed.
        "<OPTION>".$Name;
        $rs->MoveNext();
      }
    ?>
    </SELECT>

I appreciate the help,
Chuck

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux