1) When writing your code, make sure you have PHP echo back
any SQL errors. I don't know the syntax for doing so with ibase,
but with mysql your database hits look more this:
$result=mysql_query($sql)
or die ("Sql prob:".$sql."<p>".
mysql_errno().": ".mysql_error());
That way, if you do something silly like leave a couple quotes off
of a text entry in a SQL statement, it will show right up.
2) When asking for help on the forum, posting the relavent code
is good, you did that, but it also helps to explain the problem you
are having rather than just say 'it doesn't work'. Sometimes, you
might find somebody had a very similar problem and it turned out
to be as simple as leaving the quotes off a text entry in the
sequel statement.
3) If the code parses but doesn't perform properly, follow the
logic through the page step by step. If you are making database
hits and not echoing back your errors, make sure all the proper
connections are being made in the proper sequence. Check your
sql statement carefully. A missing field in the where clause will
not generate an error. If you are not echoing errors back, also
check the syntax of your SQL statement carefully. Something as
simple as leaving the quotes off a text entry in the SQL
statement is easily overlooked but will stop your application dead.