Re: Prepared Statement Insert Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux