Hi,
PHP
MySQL
IIS
I have a PHP page that connects to a MySQL database.
I get the following error when I view the page in my browser:
"You have an error in your SQL syntax near '(LINKS.ID) AS CountOfLinks, link_category.cat_name FROM LINKS, link_category G' at line 1"
My SQL statement is not exactly complicated, and is:
SELECT COUNT (LINKS.ID) AS CountOfLinks, link_category.cat_name
FROM LINKS, link_category GROUP BY link_category.cat_name
Can anyone see the problem? I am new to PHP/MySQL, and used to program with VBScript/Access so perhaps MySQL is a bit different...
Thanks