Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Israel Pinheiro

PHP com Firebird

Recommended Posts

Apanhando bastante com PHP + Firebird

 

Eis o erro:

 

( ! ) Fatal error: Cannot use object of type stdClass as array in C:\wamp\www\certa\index.php on line 19 Call Stack # Time Memory Function Location 1 0.0027 142000 {main}( ) ..\index.php:0

 

Eis o código:

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
include_once('config.php')
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Exemplo Teste</title>
</head>

<body>

<?php
$sql = ("SELECT descprod from EQPRODUTO");
$query= ibase_query ($dbh, $sql);
while ($row = ibase_fetch_object ($query))


echo $row[0]; //
echo $row[1]; //

ibase_free_result($query);
ibase_close($dbh);
?>


</body>
</html>

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.