Website Membership (?) MySQL Error

Re: [yusuke] Website Membership (?) MySQL Error

By Chris - August 30, 2010

Hi yusuke,

It could be that your field name "set" is a [url http://dev.mysql.com/doc/refman/4.1/en/reserved-words.html]MySQL Reserved Word[/url]. Try adding some backtick quotes around it whenever you use it in SQL to see if that helps.

For example, try changing this line:

set = '".mysql_escape( $_REQUEST['set'] )."',

...to this:

`set` = '".mysql_escape( $_REQUEST['set'] )."',

Does that help? If not, please let me know and I'll figure out what to try next!
All the best,
Chris

Re: [chris] Website Membership (?) MySQL Error

By yusuke - August 30, 2010

Hi Chris,

Everything is fine now!

Thank you!!!!!

It was caused by MySQL Reserved Word. Also it seems that there was other reasons causing the error such as unnecessary spacing. (?)

Re: [yusuke] Website Membership (?) MySQL Error

By Chris - August 31, 2010

Hi yusuke,

Glad you got this fixed!

Unnecessary spacing is not an issue. If you're referring to the fact that I removed a couple spaces above, that's just a habit I have to keep things lined up. You can add or remove as many spaces as you want. :)
All the best,
Chris