Incorrect table name, php/mysql

Posted by user296516 on Stack Overflow See other posts from Stack Overflow or by user296516
Published on 2010-05-15T15:02:58Z Indexed on 2010/05/15 15:04 UTC
Read the original article Hit count: 307

Filed under:
|

Hi guys, I've got this code

        mysqli_query ( $userdatabase,
        'CREATE TABLE `user_'.$emailreg.'` (
        ID int NOT NULL AUTO_INCREMENT PRIMARY KEY,

        IP varchar(10),
        FLD1 varchar(20),
        FLD2 varchar(40),
        FLD3 varchar(25),
        FLD4 varchar(25),
        FLD5 varchar(25) )' );

        echo ( mysqli_error ($userdatabase) );

that works fine on my localhost, but when I upload it to the server, it starts giving me a "Incorrect table name '[email protected]'" error. any idea?

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql