1
I have my comic book, however, is bringing me a different result than what is in the bank
$consulta = "select * FROM PRODUTO_pedido WHERE PEDIDO_PED_ID =12";
$resultado = $db_con->query($consulta);
$contador = $resultado ->rowCount();
while ($row = $resultado-> fetch()){
echo "<script>alert(".$row['PRODUTO_PROD_CODIGO'].")</script>";
}
For example, in the comic the id is as 299007
and is showing me 01110105
.
How do I resolve?
Already played this your query on the bank even to see the return?
– Anderson Henrique
Take a test and change the line
while ($row = $resultado-> fetch())
forwhile ($noticia = mysql_fetch_assoc($query))
.– DNick