Simpe MySQL register login system not working.
#2

pawn Код:
stock mySQL_init()
{
    mysql_debug(1);
    gHandle = mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);

    /* Table Structure - kind of messy, I know. */
    mysql_function_query(gHandle, "CREATE TABLE IF NOT EXISTS `users` ( \
        `ID` int(11) NOT NULL AUTO_INCREMENT, \
        `Name` varchar(24) NOT NULL, \
        `Password` varchar(129) NOT NULL, \
        PRIMARY KEY (`id`) \
    )"
, false, "SendQuery", "");

    return 1;
}
This is just a tip how to handle it. I'm using BlueG's newest MySQL plugin so you gotta upgrade to it if you already haven't.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)