|
#1
|
||||
|
||||
update mysql to mysqli
Hello everyone,
I want to do with mysql in mysqli. I use the TS 2.5 by xam and is fully modded, when i change this i get white page what am i doing wrong. Thank you fuctions.php mysql Code:
function dbconn($autoclean = false){global $mysql_host, $mysql_user, $mysql_pass, $mysql_db;if (!@mysql_pconnect($mysql_host, $mysql_user, $mysql_pass)){switch (mysql_errno()){case 1040:case 2002:if ($_SERVER[REQUEST_METHOD] == "GET")die("<html><head><meta http-equiv=refresh content="5 $_SERVER[REQUEST_URI]"></head><body><table border=0 width=700 height=100%><tr><td><h3 align=center>The server load is very high at the moment. Retrying, please wait...</h3></td></tr></table></body></html>");elsedie("Too many users. Please press the Refresh button in your browser to retry.");default:die("[" . mysql_errno() . "] dbconn: mysql_pconnect: " . mysql_error());}}mysql_select_db($mysql_db)or die('dbconn: mysql_select_db: ' + mysql_error()); Quote:
Quote:
config/DATABASE Quote:
Last edited by elvira; 19th April 2020 at 20:13. |
#2
|
||||
|
||||
Msqli ts Tracker
It may be that this works with ts 2.5, but with 5.6 these things do not work.
__________________
Sky-Tech Developer Team Hungary
|
|
|