ErrorException [ 8192 ]: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead

MODPATH/db/vendor/db.php [ 29 ]

24 	}
25 	
26 	
27 	public function  __construct($host,$user , $pass ,$dbname) 
28     {
29             $this->con = mysql_connect($host,$user,$pass ) or die('cant connect to mysql server '.mysql_error());
30             mysql_select_db($dbname,$this->con) or die('cant connect to database'.mysql_error());;
31             mysql_set_charset('utf8',$this->con);
32     }
33 
34     public function query($queryString)
  1. {PHP internal call} » Kohana_Core::error_handler(arguments)

  2. MODPATH/db/vendor/db.php [ 29 ] » mysql_connect(arguments)

  3. MODPATH/db/vendor/db.php [ 20 ] » db->__construct(arguments)

  4. APPPATH/classes/wscontroller.php [ 21 ] » db::instance()

  5. {PHP internal call} » WSController->__construct(arguments)

  6. SYSPATH/classes/kohana/request/client/internal.php [ 108 ] » ReflectionClass->newInstance(arguments)

  7. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client_Internal->execute(arguments)

  8. DOCROOT/index.php [ 109 ] » Kohana_Request->execute()

Environment