mysql - PHP Does not let me query a table -


i have database can make queries tables without problems except 'employees' table. tried making basic query in php:

<?php  error_reporting(0); require "init.php";  $sql = "select * empleados;";  $result = mysqli_query($con, $sql); $response = array();  while($row = mysqli_fetch_array($result)){     $response[]=$row; }  echo json_encode($response); ?> 

... , not results. when run query other tables, works well, can be?

enter image description here

this same query works fine phpmyadmin

news: if use select dni empleados works, if use select * empleados doesn't.... (dni key, possible can access primary key?)

be careful special characters such spanish accents, if remove these query works correctly


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -