• 0
Sign in to follow this  
Guest eustaquio

Php + Firebird

Question

Guest eustaquio

estou tentando fazer um update numa tabela de um banco firebird mas da a seguinte mensagem:

Warning: ibase_execute() [function.ibase-execute]: conversion error from string "" in C:\www\admin\update.php on line 31

o código :

<?php

$titulo = $_POST["titulo"];

$sinopse = $_POST["sinopse"];

$dataincl = $_POST["dataincl"];

$news = $_POST["news"];

$show = $_POST["pa"];

$id = $_GET ["id"];

$sql = "Select * from NOTICIAS";

$result = ibase_query($rdb,$sql);

$row = ibase_fetch_object ($result);

$sql = ibase_prepare("UPDATE NOTICIAS set TITLE='$titulo',SINOPSE='$sinopse',news='$news',SHOW='$show',DATAINCL='$dataincl' where id='$id'");

$trans = ibase_trans();

ibase_execute($sql,$titulo,$sinopse,$dataincl,$news,$show,$id);

ibase_commit($trans);

ibase_free_query($sql);

unset($trans);

unset($sql);

?>

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

/* tenta fazer isso

No arquivo php.ini deve ser trocada a opção OFF para ON na seguinte linha: magic_quotes_sybase

*/

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this