Need help mysql error.

JTA

New Member
Dec 8, 2014
9
0
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\xamppg\htdocs\app\class.engine.php on line 48

Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xamppg\htdocs\app\tpl\class.forms.php on line 87


How do I fix this error? I know it says that I need to use mysqli or PDO, but how do I change from mysql to mysqli?
 

JTA

New Member
Dec 8, 2014
9
0
Show me like 48 in class.engine and line 87 in class.forms
while($news = mysql_fetch_array($data, MYSQL_ASSOC)) (class.forms)
$this->connection = $this->mysql[$type]($_CONFIG['mysql']['hostname'], $_CONFIG['mysql']['username'], $_CONFIG['mysql']['password']); (class.engine)
 

Users who are viewing this thread

Top