0
I made a menu with Ajax and it changes the content dynamically, so far so good, but the problem is that when I insert a PHP code in the page it does not recognize the code and displays the writings, it appears instead of executing the code. Does anyone know what’s going on??
Note: before Ajax worked normally.
prepare("SELECT * FROM empresa");
$executa = $empresa->execute();
if($executa){
while($reg = $empresa->fetch(PDO::FETCH_OBJ)){
/* Para recuperar um ARRAY utilize PDO::FETCH_ASSOC */
?>
txt_empresa
?>
getMessage();
}
?>
is too vague. We have no crystal ball
– Daniel Omine
Only with this section is not possible to know the problem. Post the whole code (the relevant part).
– gustavox
When you access the php file directly happened the same thing? you call it at the address
file:///c:\amp\htdocs\arquivo.php
?– rray