Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

Problem solved

Thanks for the help ;)))))))
[Image: j05dbmJ.gif]
Replace it with:
PHP Code

<?php 
$date 
= date('Y-m-d H:i:s',time()); 

Make sure the row has the proper type (timestamp).
[Image: MWjc9rm.png]
(Aug 22, 2017 01:43 PM)Lucifer Morningstar Wrote:  Replace it with:
PHP Code

<?php 
$date 
= date('Y-m-d H:i:s',time()); 

Make sure the row has the proper type (timestamp).

Hmm, still doesn't work. No errors or anything, the data just won't show up on phpMyAdmin.
[Image: j05dbmJ.gif]
PHP Code

<?php 
INSERT INTO table_users 
(username, password, email, fullname, gender, level, avatar, admin_access, views, date_registered) VALUES ('', '$username', '".hashPassword($password)."', '$email', '$firstname $lastname', '$gender', '0', 'default.png', '0', '$date') 
Well that query is messed up. You have everything shifted to the right as you insert '' into the `username` column and continue from there. You're also missing a value for the `views` column.

Should be something like:
PHP Code

<?php 
INSERT INTO table_users 
(username, password, email, fullname, gender, level, avatar, admin_access, views, date_registered) VALUES ('$username', '".hashPassword($password)."', '$email', '$firstname $lastname', '$gender', 0, 'default.png', 0, 0, '$date') 

Not sure what your column types are so the integers might need to be changed to strings.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[PHP] by SIM-1456245Sep 30, 2013 10:11 AM 22 516 Sep 30, 2013 10:11 AM
Last Post: SIM-1456245
[PHP] by SIM-1456245Sep 8, 2013 02:28 AM 3 118 Sep 8, 2013 02:28 AM
Last Post: SIM-1456245
[PHP] by Linux.Dec 26, 2012 11:31 AM 30 462 Dec 26, 2012 11:31 AM
Last Post: Linux.