From: Jeff S. <why...@ya...> - 2004-09-22 14:42:24
|
I doubt the problem has to do with Unicode, not that I would completely rule it out, either. If you can, please try running the script from the command line ('php /srv/www/htdocs/odbc-test.php') and let me know if you see any additional information. Also, is that the only entry in odbc.ini? -- Jeff Smith --- Rob Pomeroy <ro...@el...> wrote: > I'm getting this error (or slight variations of it): > > Warning: SQL error: x)@[wØÈÿ¿ÿë@)@·S, SQL state 00000 in SQLConnect in > /srv/www/htdocs/odbc-test.php on line 3 > > Anyone have ANY idea what all that junk is about? > > Thanks, > > Rob > > > > > The setup: > > unixODBC 2.2.9 (same error with 2.2.3) > mdbtools 0.6 > PHP 4.3.1 > > -------------- > /etc/odbc.ini: > > [MatterData] > Description = Lawbyte Matter tables > Driver = MDBToolsODBC > Database = /home/public/LawbyteData/matters.mdb > Servername = localhost > UserName = > Password = > Port = 5432 > -------------- > > > -------------- > /etc/odbcinsti.ini: > > [MDBToolsODBC] > Description = MDB Tools ODBC drivers > Driver = /usr/local/lib/libmdbodbc.so.0 > Setup = > FileUsage = 1 > CPTimeout = > CPReuse = > -------------- > > -------------- > The script: > > <?php > > $db = odbc_connect("MatterData","",""); > > ?> > -------------- > > -- > Rob Pomeroy: ro...@el... > Solicitor specialising in charity law, wills, probate and trusts > Ellis & Co. Solicitors, 10 Castle Street, Chester, CH1 2DS > Telephone: 01244 319388; Fax: 01244 319333 > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > mdbtools-dev mailing list > mdb...@li... > https://lists.sourceforge.net/lists/listinfo/mdbtools-dev > __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo |