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

4x4 Matrix in Python -

python - String indices must be integers and while issue -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -