Re: [PHP] PHP 5.01 and HTML

2004-08-20 Thread Chuck
Thanks alot, worked great. You're the man!! "Matt M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > > $db = new COM("ADODB.Connection"); > > $dsn = "DRIVER=SQL Server; SERVER=D63WV941;UID=sa;PWD=sa; > > DATABASE=BINDER"; > > $db->Open($dsn); > >

Re: [PHP] PHP 5.01 and HTML

2004-08-20 Thread Matt M.
> >$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

[PHP] PHP 5.01 and HTML

2004-08-20 Thread Chuck
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. Open($dsn); $rs = $db->Execute("SELECT * from company"); while (!$rs->EOF) { $Name = $rs->Fields