Re: Prepared Statement Insert Problem
| From: | Christopher Jones | Date: | Tue, 21 Jul 2009 17:46:33 +0000 |
| Subject: | Re: Prepared Statement Insert Problem | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-46342@lists.php.net to get a copy of this message | ||
kesavan trichy rengarajan wrote:
could be rewritten as: mysqli_stmt_bind_param($submitadmin, "isss", $numrows, $admin, sha1($password), $email);Turning on E_STRICT in PHP 5.3 will show PHP Strict Standards: Only variables should be passed by reference This is also true in earlier versions although the warning isn't displayed. For compliance, try: $s = sha1($password); mysqli_stmt_bind_param($submitadmin, "isss", $numrows, $admin, $s, $email); Chris -- Blog: http://blogs.oracle.com/opal Twitter: http://twitter.com/ghrd