Well, it happens that when trying to show the table "client" in my php form it is not generated, the problem is that it does not give me the origin of error. I've been looking for that error for a couple of hours and I can not find it. I have theories that the error is given to me by the
Mysqli_fetch.
but I do not know how else I can print the data
<?php
include("coneccion.php");//Contiene la coneccion a la base de datos, funciona bien la estoy usando en otra parte de la pagina web.
@$mostrar=$_POST['mostrar'];
if($mostrar){
$sql="select 'cedula', 'nombre', 'direccion', 'telefono' FROM 'cliente' ";
$rsql= mysqli_query($conn,$sql) or die (mysql_error());
$sw=1;
}
/************Formulario*****************/
echo"<form action=index.php#clients method=post>";
echo "<table id='tabla3'> <tr>";
echo "<th>Cedula</th>";
echo "<th>Nombre</th>";
echo "<th>Direccion</th>";
echo "<th>Telefono</th>";
echo"<input type=submit name=mostrar value=Obtener Datos>";//Pulsa el boton para "generar tabla"
echo "</tr>";
echo"</table>";
echo"</form>";
if(@$sw>0){
echo "<table id='tabla4'>";
while($row = mysqli_fetch($rsql)){
echo"<tr>";
echo "<td>";
echo $row['cedula'];
echo "</td>";
echo "<td>" ;
echo $row['nombre'];
echo "</td>";
echo "<td>";
echo $row['direccion'];
echo "</td>";
echo "<td>";
echo $row['telefono'];
echo "</td>";
echo"</tr>";
}
echo"</table>";
}
?>