note 103385 added to function.ifx-create-char
| From: | evandrosimenes at gmail dot com | Date: | Mon, 11 Apr 2011 15:18:56 +0000 |
| Subject: | note 103385 added to function.ifx-create-char | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178693@lists.php.net to get a copy of this message | ||
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:
$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>";
}
----
Server IP: 69.147.83.197
Probable Submitter: 187.64.227.249
----
Manual Page -- http://www.php.net/manual/en/function.ifx-create-char.php
Edit -- https://master.php.net/note/edit/103385
Del: integrated -- https://master.php.net/note/delete/103385/integrated
Del: useless -- https://master.php.net/note/delete/103385/useless
Del: bad code -- https://master.php.net/note/delete/103385/bad+code
Del: spam -- https://master.php.net/note/delete/103385/spam
Del: non-english -- https://master.php.net/note/delete/103385/non-english
Del: in docs -- https://master.php.net/note/delete/103385/in+docs
Del: other reasons-- https://master.php.net/note/delete/103385
Reject -- https://master.php.net/note/reject/103385
Search -- https://master.php.net/manage/user-notes.php