Deprecated: mysql_pconnect - what I need to change?
December 30, 2014 02:30PM
hi
when I preview in browser my search engine results page (.sphider.) I get a message saying that:

Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/whatsup/public_html/sphider-1.3.5/settings/database.php on line 10

my detabase.php (sphider-1.3.5)
<?php
$database="XXXXX_XXXX";
$mysql_user = "XXXXX_XXXXX";
$mysql_password = "XXXXX";
$mysql_host = "localhost";
$mysql_table_prefix = "";



$success = mysql_pconnect ($mysql_host, $mysql_user, $mysql_password);
if (!$success)
die ("<b>Cannot connect to database, check if username, password and host are correct.</b>"winking smiley;
$success = mysql_select_db ($database);
if (!$success) {
print "<b>Cannot choose database, check if database name is correct.";
die();
}
?>


I have no idea what I need to change..? and I don't know how to change..
Could you please help me solve this problem?

Best regards
kami
Tec
Re: Deprecated: mysql_pconnect - what I need to change?
December 30, 2014 03:13PM
Use the search function of this forum (top right) and query for:
deprecated
Sorry, only registered users may post in this forum.

Click here to login