erro mysql_fetch_array() expects parameter 1 to be resou
Faz algum tempo que não programo em php, hoje fui fazer algo simples, porém resultou nesse erro:
! ) Warning: mysql_fetch_array() expects parameter 1 to be resource, object given in C:\wamp\www\anexo\index.php on line 50
42 - <?php
43 -
44 - $local = mysqli_connect('localhost','root','','u951902255_soad') or die("erro coneção");
45 -
46 - $sql = "SELECT * FROM anx_painel";
47 -
48 - $result = mysqli_query($local,$sql) or die('erro query');
49 -
50 - while($row = mysql_fetch_array($result)) {
51 - //$row = mysql_fetch_row($result);
52 - $teste = $row["id"];
53 - echo $row['id'];
54 - echo $teste;55 -
56 - }
57 -
58 - ?>
Acredito que seja algo simples, porém não estou sabe do onde é o problema
Discussão (2)
Carregando comentários...