kurdugum Bir Script de Aşağıdaki Hatayı Alıyorum
( ! ) Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\Server\www\siteler\cunitygood\classes\Cunity_Database.class.php on line
42Call Stack
#TimeMemoryFunctionLocation
1
0.0000
265664
{main}( )
..\pinboard.php
:0
2
0.0000
349432
require(
'C:\Server\www\siteler\cunitygood\ov_head.php' )
..\pinboard.php
:37
3
0.0120
1643008
Cunity->Cunity( )
..\ov_head.php
:49
4
0.0120
1648000
Cunity_Database->__construct( )
..\Cunity.class.php
:38
5
0.0120
1648048
mysql_connect ( )
..\Cunity_Database.class.php
:42
metin editörü ile
..\Cunity_Database.class.php:42 ci satırını açtığım zaman çıkan kod:37 class Cunity_Database {
38
39 private $cnt = array();
40
41 public function __construct($cunityConfig) {
42 $this->cnt[0] = mysql_connect($cunityConfig["db_host"], $cunityConfig["db_user"], $cunityConfig["db_pass"]) or die('No database connection (Server not found or login failed!)');
43 mysql_select_db($cunityConfig["db_name"], $this->cnt[0]) or die(mysql_error().'Database Error! ("Database '.$cunityConfig['db_name'].' not found!")');
44 mysql_set_charset('utf8',$this->cnt[0]); //Set the database characters to UTF8 as some German characters are not displayed correctly
..\Cunity.class.php
:38
deki satır ise aşağıdakidir 38 $this->db = new Cunity_Database($this->getConfig());
..\ov_head.php
:49
deki satır ise aşağıdakidir49 $cunity = new Cunity();
..\pinboard.php
:37
deki satır ise aşağıdakidirrequire('ov_head.php');
hatalar ve satırlar bu şekildedir burda hata nerde bulamadım yardım edermisiniz
Zaman
2014-10-06 13:43:38Php Lütfen Acil Uzman Biri Yardım Etsin...!!!