note 103385 modified in function.ifx-create-char by danbrown

From: Date: Mon, 11 Apr 2011 15:32:15 +0000
Subject: note 103385 modified in function.ifx-create-char by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178695@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: <?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>"; } ?> --was-- 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>"; } http://php.net/manual/en/function.ifx-create-char.php

« previous php.notes (#178695) next »