Re: Error to insert in firebird

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ismael L. Donis Garcia wrote:
$sql = "insert into scele (codigo, nombre) values (?, ?)";
$param = "1, Test1";

$tr = ibase_trans(IBASE_WRITE,$this->cn);
$qr = ibase_prepare($tr,$param);
echo ibase_errmsg() ."<br>";
Dynamic SQL Error SQL error code = -104 Token unknown - line 1, column 1 2

But I do not understand as it can be the error.

Ismael
http://groups.yahoo.com/group/firebird-php/ we can go into a bit more detail and point you at a few other useful tools. For a start you need to prepare the 'query' ($sql) before you can 'attach' the param values.

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux