Subject Re: [firebird-php] SQL script
Author Daniela Mariaschi
> In a form, in a TEXTAREA I wrote
> SELECT CLIENT FROM PERSOANE WHERE NUME STARTING WITH 'O''TOOL'
>
> The line in my script is:
> $result=ibase_query($conn, addslashes($_POST"Textarea_content"]));
>
> The result :
> Warning: ibase_query(): Dynamic SQL Error SQL error code = -104 Token
> unknown - line 1, char 58 O in c:\apache\htdocs\action.php on line 14

Hey Dorin,

the best thing todo in such a case is to print out your query.
It seems your "addslashes" is ignoring
magic_quotes_sysbase directive at all ...........

try this to find out the error :
$q = addslashes($_POST["Textarea_content"] );
echo "[" . $q . "]";
$result=ibase_query($conn, $q);

hope this help
Daniela