I recently purchased a php script to use on my website however, there is no support for it, i attempted the installation and i received the error message:
mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home2/pulseman/public_html/install.php on line 16
Here is some of the script where i have to issue:
<?php
if (!defined("_WASD_")) exit;
$app = array('namespace'=>'phpmanga',
'name'=>'PHP Manga');
if(C('app.installed') == '1'){
$messageType = 'info';
$message = 'Please delete "install.php" file in your root directory before launching your site';
}
if(isset($_POST['install']) && $_POST['install'] == '1'){
$connect = mysql_connect($_POST['data']['DB_HOST'], $_POST['data']['DB_USER'], $_POST['data']['DB_PASSWORD']);
if(!$connect){
$messageType = 'danger';
$message = 'Could not connect to the database you inputted in, please double check database detail and try again.';
}else{
$db_selected = mysql_select_db($_POST['data']['DB_NAME'], $connect);
if(!$db_selected){
$messageType = 'danger';
$message = 'Could not select the database "'.$_POST['data']['DB_NAME'].'"<br />That could be due to spelling errors in database name or that database doesn\'t exist please double check database detail and try again.';
I would to know to fix the issue or pointed in the direction, I am a beginner, i apologize in advance.