Member
Member
RogerUsh   21-10-2005, 07:47
#1

I tried re-installing zp in another folder and I am getting this error:

MySQL Query ( SELECT * FROM 01_portfolio-albums ) Failed. Error: 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 '-albums' at line 1

Setup.php runs smoothly, and I changed all the config.php and .htaccess variables I could think of.

Does anybody have any idea what this error means?

Much appreciated.

-the_rog

Member
Member
RogerUsh   21-10-2005, 07:55
#2

ps. I should also include the fact that I got the error when trying to access the admin page after running setup.php successfully.

I get this error when trying to access the gallery:

MySQL Query ( SELECT *, (date + 0) AS date FROM 01_portfolio-albums WHEREfolder='' LIMIT 1; ) Failed. Error: 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 '-albums WHEREfolder='' LIMIT 1' at line 1

Developer
Developer
trisweb   22-10-2005, 06:49
#3

It looks like your "mysql prefix" variable in the config file is set to '01_portfolio-' -- Table names cannot contain dashes, and I didn't check for that.

Remove the dash (change to an underscore) and re-run setup.

Member
Member
dom   22-10-2005, 09:55
#4

Hi,

Just to clarify, MySQL table names can contain dashes, but if you are going to use them then you must delimit the table name with backticks, eg:

SELECT * FROM 01_portfolio-foo

edit:

Ok, the formatting on these forums turns backticks into code, so I cannot give an example. :/

Member
Member
RogerUsh   24-10-2005, 06:31
#5

Thanks!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.