I am trying to access a access data base with PHP, but it is not possible. The error that happens is: Fatal error: Call to undefined function: odbc_connect() in /home/freehost/t35.com/g/o/goamaster/access.php on line 2.
I don't know if the problem is with permission for free acounts or the problem is with the PHP code.
This is the PHP code that i am trying to connect:
<? $con = odbc_connect("access","","") or die("Erro na conexão com o Database"); $sql = odbc_exec($con,"SELECT * FROM tb_clientes"); $i=0; while(odbc_fetch_row($sql)) { $i++; echo odbc_result($sql,"id"); echo odbc_result($sql,"nome"); echo odbc_result($sql,"endereco"); echo odbc_result($sql,"email"); echo odbc_result($sql,"telefone"); echo "<br>"; } ?>
If someone can help me i will be thank.
Diego
|