|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I'm having problems with a stored procedure when i try to execute it in php, im my admin tool the stored procedure works very fine, but when i try to execute it through php it's showed the follow error message...
Code:
ibase_query(): message length error (encountered 0, expected 8) My stored procedure insert a register, and after insert it gets the ID from the inserted register. I've tried all but i didn't have success... Stored Procedure: Code:
begin INSERT INTO USUARIO (USU_DEP_ID, USU_NOME, USU_LOGIN, USU_SENHA, USU_INDEX, USU_ATV) values (:USU_DEP_ID, :USU_NOME, :USU_LOGIN, :USU_SENHA, '', '1'); USU_ID = GEN_ID(GEN_USUARIO_ID,0); suspend; end In IBExpert its the tool that i use to make the procedures, it works very fine! Php code: PHP Code:
Please someone could help me?? Thanks! |
|
#2
|
|||
|
|||
|
Maybe if you change the code to something like this:
$stmt = "select * from sp_insere_usario (your_parameters)"; $result = ibase_query($stmt); $row = ibase_fetch_row($result); echo $row[0]; |
|
#3
|
|||
|
|||
|
i encountered the same problem, when i tried to execute interbase procedure, which returned some data in result. try to use
"select * from my_proc" instead of "execute procedure my_proc"! Gi |
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > Firebird + PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|