Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[MySQL][ODBC 3.51 Driver][mysqld-5.0.18-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
/bokning/lediga.asp, line 82
och LIne82 är:
<% Set RS = Connect.Execute("SELECT * FROM datorer WHERE ledig = " & Ja & "") %>
Det är en MySQL databas. Connect-strängen är:
Connect.Open "DRIVER={MySQL ODBC 3.51 Driver}; server=localhost; uid=root; pwd=*; database=sp; option=16384"