Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I receive errors in PHP when I try to connect to an Interbase Database

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
When I try to connect to an interbase database I receive this error, any help:

Fatal error: Call to undefined function: ibase_connect() in index.php on line 4

Here the code:

<?PHP
$conn=ibase_connect(&quot;teste1.gdb&quot;, &quot;SYSDBA&quot;, &quot;masterkey&quot;);
if (!$conn)
{ echo &quot;Access Denied!&quot;;
exit; }
$query=&quot;SELECT * FROM TESTE;&quot;;
$result=ibase_query($conn,$query);
if (!$result) {
echo &quot;Error. Can't insert the record with the query: $query!&quot;;
exit;
}
?>
 
you have to recompile php with ibase support (in linux) orelse, activate the php_ibase.dll extension in windows.
Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top