The answer was that I used the wrong quotation marks instead of backlinks. The silly hilighter syntax fooled me.
I was stuck in this simple (ish) thing in the last half hour, so I thought I could try to get a quick answer here.
What exactly is wrong with SQL syntax if I use mysql 5.1
CREATE TABLE 'users' ( 'id' INT(11) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, 'username' VARCHAR(20) NOT NULL, 'password' VARCHAR(40) NOT NULL, 'salt' VARCHAR(40) DEFAULT NULL, 'email' VARCHAR(80) NOT NULL, 'created_on' INT(11) UNSIGNED NOT NULL, 'last_login' INT(11) UNSIGNED DEFAULT NULL, 'active' TINYINT(1) UNSIGNED DEFAULT NULL, ) ENGINE InnoDB;
The error I am getting is:
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 ''users'; CREATE TABLE 'users' ( 'id' INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,' at line 3 Elapsed Time: 0 hr, 0 min, 0 sec, 0 ms.
Also, does anyone have any good tutorials on how to use Zend_Auth for complete noob?
Thanks.
source share