The Server Pages
:: TSP Menu
- Home
- Authors
- Glossary
- RSS Feed

:: Servers
- CPanel
- Hosting
- Linux
- Windows

:: Webmaster
- Databases
- Design
- PHP
- Search Engines

:: Scripts
- Scripts

:: Documentation
- PHP Manual

:: Other
- Errors & Solutions
- TechPunt
- Wojjie

search for in the

ifx_do> <ifx_create_blob
[edit] Last updated: Sat, 12 May 2012

view this page in

ifx_create_char

(PHP 4, PHP <=5.2.0)

ifx_create_charCreates an char object

Description

int ifx_create_char ( string $param )

Creates an char object.

Parameters

param

The char content.

Return Values

Returns the new char object id, or FALSE on errors.

See Also



add a note add a note User Contributed Notes ifx_create_char
evandrosimenes at gmail dot com 11-Apr-2011 03:18
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>";   
}
?>

 
show source | credits | sitemap | contact | advertising | mirror sites