Re: odbc_connect
| From: | Budgee) | Date: | Thu, 31 Aug 2000 08:56:48 +0000 |
| Subject: | Re: odbc_connect | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2335@lists.php.net to get a copy of this message | ||
Howdy
Please gimme a hand here.
What do I use for the DSN? I have tried the dbname I also tired the
same DSN that the asp code uses (below):
<?
$conn=odbc_connect("DRIVER={Microsoft Access Driver
(*.mdb)};DBQ=c:\inetpub\wwwroot\phpodbc\ghs.mdb","inet","inet");
$c1=odbc_exec($conn,"select * from oldboys1930 order by
year,lastname");
odbc_result_all($c1,"border");
odbc_close($conn);
?>
Can't do it... :(
Thanks
Warwick Chapman (1999)
Assistant IT Manager
Glenwood High School, Durban, South Africa
031 2055241
083 7797094
www.glenwoodhighschool.co.za