Re: Prepared Statement Insert Problem

From: Date: Tue, 21 Jul 2009 23:58:35 +0000
Subject: Re: Prepared Statement Insert Problem
References: 1 2 3  Groups: php.db 
Request: Send a blank email to php-db+get-46343@lists.php.net to get a copy of this message
Done. Thanks for letting me know about that. > 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 > >

« previous php.db (#46343) next »