note 103385 deleted from function.ifx-create-char by cmb

From: Date: Wed, 04 Nov 2020 21:22:11 +0000
Subject: note 103385 deleted from function.ifx-create-char by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215803@lists.php.net to get a copy of this message
Note Submitter: evandrosimenes at gmail dot com ---- 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>"; } ?>

« previous php.notes (#215803) next »