I found it difficult to get anything working using the current documentation.While logic would suggest that the format in the docs should work (being based on all the syntax of other standard database access functions) I had problem after problem. Finally Ifound some comments on a newgroup that helped, and this is the result.

This is actual production code (not a mere example). It works. Don't ask me why it is so different from the official docs.

You'll notice that there is no reference to a database handle in this code. It seems to be implicit when dealing with interbase functions. Certainly, I couldn'tget the code to work when using it explicitly. This makes the documentationvery hard to work with, and any reference to a handle needs to be ignored.

Note: the line "if ($row_fetched)" could be replaced with "while ($row_fetched)"if you need to process more than one record.

All that said, Interbase is a fantastic database to work with and IMHO a much better choice than something like PostgreSQL if you need to move up from MySQLto something more industrial strength. Just be sure to RTFM.