Re: PHP 5.01 and HTML
| From: | Chuck | Date: | Fri, 20 Aug 2004 19:56:19 +0000 |
| Subject: | Re: PHP 5.01 and HTML | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194369@lists.php.net to get a copy of this message | ||
Thanks alot, worked great. You're the man!!
"Matt M." <h.dudeness@gmail.com> wrote in message
news:7d45802004082012535824214@mail.gmail.com...
> > <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>
>
> print "<OPTION>".$Name;