Hi,
I'm now fidling with databases. Instaled the trio MySQL 4.0.24. PHPMyAdmin 2.8.0.3 and PHP 4.4.6, everything with Abyss X1 v2.4.
But i get an error when i do:
IF(EXISTS (SELECT * FROM examples WHERE name='".$name."')
PRINT '".$name." exists'
ELSE PRINT '".$name." does''t exists')") or die(mysql_error());
The error says "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 'IF EXISTS (SELECT *...".
So i'm thinking MySQL 4.0.24 can't do IF statements or EXISTS statements like this.
Then how can i procede? Upgrade to PHP 5 + MySQL 5?
Any ideas?
Thanks.