Re: [PHP] Deprecated features in php 7.1

[email protected] (Shawn McKenzie)
Newsgroups php.general
Message-ID <CABPrARiRxndWFtWjK7V+9W647hxON-Kzw=ZK0z1kz5rC0L5BgQ@mail.gmail.com>
Those functions were removed in PHP 7.  PIck MySQLi or PDO:
http://php.net/manual/en/mysqlinfo.api.choosing.php

On Thu, Feb 23, 2017 at 9:11 AM, Release Edl
<[email protected]> wrote:
> The script bellow is working properly under php 5.6, but not in php 7.1.
> What could we do to fix it?
>
> <?php
>
> include("_restrito/conexao.php");
>
> $conexao = mysql_connect($host,$user,$pass,$db);
>
>    if(!$conexao)
>
>    die("Nao foi possivel conectar no servidor MySQL. Erro: " .
> mysql_error());
>
>    mysql_select_db($db) or die("Nao foi possivel usar o banco de dados.
> Erro: " . mysql_error());
>
>    $pagina = $_GET['pagina'];
>
>    $banco = mysql_select_db("mensagem");
>
> $busca = "SELECT * FROM portfolio ORDER BY id DESC";
>
> $total_reg = "5";
> if (!$pagina) {
>    $pc = "1";
> } else {
>    $pc = $pagina;
> }
>
> $inicio = $pc - 1;
> $inicio = $inicio * $total_reg;
>
> $limite = mysql_query("$busca LIMIT $inicio,$total_reg");
> $todos = mysql_query("$busca");
>
> $tr = mysql_num_rows($todos);
> $tp = $tr / $total_reg;
> while ($dados = mysql_fetch_array($limite)) {
>
> ?>
>
> Thanks in advance for any help.
> Att.,
> Paulo
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.