$cont = mysql_query("SELECT * post WHERE pagina=$idpag")
or die(mysql_error());
while($post=mysql_fetch_array("$cont")){
$id=$post['id'];
$titulo=$post['titulo'];
$texto=$post['texto'];
$id_autor=$post['id_autor'];
}
echo ('$id, $titulo, $texto, $id_autor');
e ele me reporta o seguinte erro:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'post WHERE 'pagina'=1' at line 1.
Question
Tato..
Gente, estou usando o seguinte código:
e ele me reporta o seguinte erro:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'post WHERE 'pagina'=1' at line 1.
Alguém sabe me dizer aonde eu errei? hehehe
Obrigado desde já!!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.