After a long discussion inside the PHP developers team they decided to mark the old mysql_* functions deprecated in PHP 5.5.
Currently mostly many MySQL connections in PHP use this construct:
Update:
Currently mostly many MySQL connections in PHP use this construct:
$link
= mysql_connect(
'localhost'
,
'user'
,
'password'
);
mysql_select_db(
'dbname'
,
$link
);
Update:
$link
= mysqli_connect(
'localhost'
,
'user'
,
'password'
,
'dbname'
);
// Old
mysql_query(
'CREATE TEMPORARY TABLE `table`'
,
$link
);
// New
mysqli_query(
$link
,
'CREATE TEMPORARY TABLE `table`'
);
In older Versions mysql still working....!!!
so for users of old versions of php just stop these erros as:
error_reporting
(E_ALL ^ E_DEPRECATED);
(this code will be at the top).
No comments:
Post a Comment
We are here to listen you, Comment your valueable opinion...!!!