• 0
Sign in to follow this  
Tbaiano

Erro Ao Conectar Banco De Dados

Question

E ai galera,

Eu estou com esse erro, quando tento conectar o banco de dados FireBird olha só:

Fatal error: Call to undefined function ibase_connect() in c:\Arquivos de programas\Apache Group\Apache\htdocs\fb\insercao.php on line 5

O meu código está assim:

<?
  $host = 'localhost/fb/dados/dados_php.fdb';
  $user = 'SYSDBA';
  $pass = 'masterkey';  
  $conexao = ibase_connect($host,$user,$pass);   
  $sql = "insert into CLIENTE (CODIGO,NOME) values ('001','Thiago')";
  $resultado = ibase_query($conexao, $sql);
  ibase_close($conexao);
?>

alguém poderia me ajudar, eu não sei nada, de PHP estou me aventurando. Valeu.

Thiago

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

cara você verificou se no arquivo php.ini esta habilitada o "dll" do firebird?

extension=php_interbase.dll (provavelmente esta comentada essa linha)

tenta ai, acho q isso resolve...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this