Running on a low RAM this would just lag my hotel, no thanks.
Printable View
Check DB settings..
Still not fixed.. Can anyone help ;P
Use this PHP script to add al your excisting users to user_info. (I haven't tested this by the way)
Spoiler:
If it worked, I can help you with adding future users to user_info. (:
Just make a new PHP file somewhere in your cms, include/require your database connection(or make one in that file) and open that PHP file in your internet browser. It will then execute the script or give an error. If it's correctly executed, all your users will be in user_info.
Just remember that you have to delete the file after it's correctly executed and all your users are in user_info.
Didn't work m8
Just to check
<?php
require_once 'required.php';
$query = mysql_query("SELECT id, account_created, last_online FROM users");
while($row = mysql_fetch_assoc($query)){
mysql_query("INSERT INTO user_info(user_id, bans, cautions, reg_timestamp, login_timestamp, cfhs, cfhs_abusive, id) VALUES (" . $row["id"] . ", 0, 0, " . $row["account_created"] . ", " . $row["last_online"] . ", 0, 0, 0)") or die (mysql_error());
}
?>
I put that in the file.
It didn't even create anything in the db however does not show any error on the page.
Using Mysql
The database just remains empty when i do that and still no error just a white page
Screenshot by Lightshot
I got mine working with RevCMS!
I edited the class.core and added this,
Also for you're CMS.Code:final public function getInfo()
{
global $engine;
return $engine->result("INSERT INTO user_info(user_id, bans, cautions, reg_timestamp, login_timestamp, cfhs, cfhs_abusive, id) VALUES ('" . $row["id"] . "', '0', '0', '1234', '1234', '0', '0', '0'");
}
You could put that script what Baas posted in a new php file and include it in the client?,
so when the user enters it will execute and insert there info into the user_info table.