Subject | Re: [firebird-php] SPs Docs |
---|---|
Author | Marko Domanovic |
Post date | 2004-11-18T06:48:46Z |
> You've actually tried that?in
>
> I just get:
>
> Warning: ibase_query(): message length error (encountered 0, expected 16)
> /usr/local/www/data/test.php on line 4this code works only in php 5+, such thing is impossible with php 4....
>
> Warning: ibase_fetch_object(): supplied argument is not a valid InterBase
> result resource in /usr/local/www/data/test.php on line 5
>
> My PHP looks like:
>
> <?php
> $conn = ibase_connect("localhost:/u1/db/test.fdb","nigel","nigel");
> $sql = "EXECUTE PROCEDURE SP_INS_TEST('hi')";
> $rec = ibase_query($sql);
> if($obj = ibase_fetch_object($rec)){
> echo "1 ".$obj->RHUBARB."<br>";
> echo "2 ".$obj[0]."<br>";
> }
> ?>
marko