Eroare mysql_connect extension is deprecated
Scris: Mie Oct 14, 2015
salutare imi da o erroare la index pagini, am pus tot ce trebuie, lipseste ceva?
Ma poate ajuta cineva ?
ce as putea face pentru a nu mai da erroare aia?
Va Multumesc de ajutor
Ma poate ajuta cineva ?
Cod: Selectaţi tot
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/rohostin/public_html/includes/dbconnect.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at /home/rohostin/public_html/includes/dbconnect.php:26) in /home/rohostin/public_html/index.php on line 60
Cod: Selectaţi tot
<?php
error_reporting(E_ALL ^ E_NOTICE);
/******************************************************************************
#
#******************************************************************************
# Author:
# Email:
# Website:
#
#
# Version: 2.0
# Copyright: (c) 2009 -
# Icons from PixelMixer /
#
#*******************************************************************************/
$script_dir = '/public_html/'; // IF IN ROOT leave like this: '/' if in root/files then '/files/'
$upload_dir = '/uploads/'; //NOTE: TRAILING FORWARD SLASHES! FULL PATH to current folder relative to root, DON'T FORGET TO SET permissions for this folder to 777 on UNIX servers.
$upload_notify_email = 'suport@sitemeu '; //email for notifications of new file upload.
$db_host = 'localhost'; //hostname
$db_user = 'rohostin_rohosti'; // username
$db_password = 'rohostingro'; // password
$db_name = 'rohostin_rohostingro'; //database name
$demo = false;
$link = mysql_connect($db_host, $db_user, $db_password) or die("1. Open dbconnect.php and edit mysql variables. <br/> 2. Run install.php ");
@mysql_select_db($db_name);
mysql_query("SET NAMES utf8") or die("err: " . mysql_error());
Va Multumesc de ajutor