php - Inserting code into MySQL database -
so have input users enter code, paypal code more specific. , error when submitting code database.
"not acceptable! appropriate representation of requested resource not found on server. error generated mod_security." so tried updating code via phpmyadmin this:
update store set paypal = "codehere" and didn't work, when entered '' instead of "" works.
so question is, how can adjust insert code work. here below current code:
// here store input value $paypal = $_get['paypal']; if (!empty($paypal)) { $sql2 = "update store set paypal = :paypal"; $stmt1 = $connection->prepare($sql2); $stmt1->bindparam(':paypal', $paypal, pdo::param_str); $stmt1->execute(); } thanks in advance! , let me know if didn't provide enough information.
you can try disabling mod_security in .htaccess file
<ifmodule mod_security.c> secfilterengine off secfilterscanpost off </ifmodule>
Comments
Post a Comment