|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-01-23 09:23 UTC] rickw at ednet dot co dot uk
Im using Access 2k with PHP 4.2 win32 binary. Im simply trying to query the columns in a table, thus; -- $conn = odbc_connect( 'DSN_NAME', 'root', '' ); $cols = odbc_columns($conn, "%", "", "[table]"); -- This returns the error; -- Warning: SQL error: , SQL state 00000 in SQLColumns in ...... -- I have seen previous postings in various places regarding this issue but no mentions of a fix/workaround anywhere??? Whats the problem with this? Is it the odbc drivers for windoze or somthing code related (although the above follows the manual to a 't')? Cheers, Rick. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 05:00:01 2025 UTC |
Thanks for that although Im sure thats not it. Ive tried every variation of; -- $cols = odbc_columns($conn, "%", "", "[table]"); -- as reported on this site and phpbuilder. Also, elsewhere Im using -- $query = "WHERE Surname LIKE '$search_val%';" ^ -- with no problems. But maybe it handles this differantly. I have seen hoards of postings about this but no official line from the good people at php.net. Knock up a quick access table and test it yourself... you'll see what I mean. Rick.