|
#11
|
|||
|
|||
Quote:
This better: Code:
$site_mysqli = new mysqli('localhost', 'root', 'Password', 'trader'); if($site_mysqli->connect_errno > 0) { die('Unable to connect to database ['.$site_mysqli->connect_error.']'); } //return $site_mysqli; mysqli_close($site_mysqli); userlogin(); if ($autoclean) { register_shutdown_function("autoclean"); } Quote:
P.S Your rewrite engine could you tech me how that works I guess you could say I am a novice, thanks again bro Last edited by BamBam0077; 11th May 2016 at 07:41. |
#12
|
|||
|
|||
PHP Code:
and for config.php use below code PHP Code:
you may also need to include this file MysqliDb.php witch is the class file here link https://github.com/joshcam/PHP-MySQLi-Database-Class |
#13
|
|||
|
|||
Thanks bro will run a test and get back to you.
running into a 504 Gateway Time-Out . Last edited by BamBam0077; 11th May 2016 at 16:07. |
#14
|
|||
|
|||
erm i guess i could come give an hand this weekend with changing mysql code to mysqli im no pro at it but i can do it so it be a game of hit and miss
|
|
|