PHP Unconference Europe 2015

ifx_create_char

(PHP 4, PHP <=5.2.0)

ifx_create_charErzeugt ein Zeichen-Objekt

Beschreibung

int ifx_create_char ( string $param )

Erzeugt ein Zeichen-Objekt mit dem Inhalt param.

add a note add a note

User Contributed Notes 1 note

up
0
evandrosimenes at gmail dot com
3 years ago
Example of ifx_create_char use:
i'd a problem with textarea content, the informix server was returning the -282 error code: Found a quote for which there is no matching quote...

This was the solution for me...i hope it can help someone else having this problem:

<?php
$textarea
= $_POST[textarea];
$char = ifx_create_char($textarea);
$txt[] = $char;
$query = 'INSERT INTO <table> (id, title, status, content) VALUES (0,"'.$title.'","'.$status.'",?)';
if (!(
$execute = ifx_query($query,$conn_id,$txt))){
   echo
"Error on insert...".ifx_error();
} else {
   echo
"<script>alert('Success');</script>";   
}
?>
To Top