Need help fixing this problem please

K4TRIN4

Posting Freak
Jul 24, 2012
777
39
Hello Guys
I was wonderinf ig anyone know the fix to this problem it occurs when a user trys to register
UberCMS has encountered an error
Incorrect integer value: '' for column 'last_online' at row 1

Thanks in advance
 

bodge

ayy lmao
Oct 31, 2011
406
54
Go to:
/inc/class.users.php
Find the function and replace this:
Code:
dbquery("INSERT INTO users (username,password,mail,auth_ticket,rank,look,gender,motto,credits,activity_points,last_online,account_created) VALUES ('" . $username . "','" . $passwordHash . "','" . $email . "','','" . $rank . "','" . $figure . "','" . $sex . "','','500','1000','','" . date('d-M-Y') . "')");

With this:
Code:
dbquery("INSERT INTO users (username,password,mail,auth_ticket,rank,look,gender,motto,credits,activity_points,last_online,account_created) VALUES ('" . $username . "','" . $passwordHash . "','" . $email . "','','" . $rank . "','" . $figure . "','" . $sex . "','','500','1000',".time().",'" . date('d-M-Y') . "')");
 

K4TRIN4

Posting Freak
Jul 24, 2012
777
39
Thanks
Go to:
/inc/class.users.php
Find the function and replace this:
Code:
dbquery("INSERT INTO users (username,password,mail,auth_ticket,rank,look,gender,motto,credits,activity_points,last_online,account_created) VALUES ('" . $username . "','" . $passwordHash . "','" . $email . "','','" . $rank . "','" . $figure . "','" . $sex . "','','500','1000','','" . date('d-M-Y') . "')");

With this:
Code:
dbquery("INSERT INTO users (username,password,mail,auth_ticket,rank,look,gender,motto,credits,activity_points,last_online,account_created) VALUES ('" . $username . "','" . $passwordHash . "','" . $email . "','','" . $rank . "','" . $figure . "','" . $sex . "','','500','1000',".time().",'" . date('d-M-Y') . "')");
 

Users who are viewing this thread

Top