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?
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
Post a Comment