Deprecated features in PHP 5.5.x

From: Date: Mon, 07 Dec 2015 13:07:51 +0000
Subject: Deprecated features in PHP 5.5.x
Groups: php.general 
Request: Send a blank email to php-general+get-325272@lists.php.net to get a copy of this message
Hi people, How can I use the mysqli function to substitute of mysql ? I need to change an old script that uses mysql. The script:: <?php include(conexao.php"); $id = $_GET['id']; $conexao = mysql_connect('host', 'user', 'pass'); if(!$conexao)
        die("Error: " . mysql_error());
mysql_select_db($db) or die("Error: " . mysql_error()); $SQL = "SELECT * FROM portfolio WHERE id='$id' ORDER BY id DESC LIMIT 1"; $query = mysql_query($SQL); while($x = mysql_fetch_array($query)) { ?> Thanks in advance for any help. Paulo

« previous php.general (#325272) next »