I've using ADOdb Execute function:
$query = "select * from users where user_id = ? and PWD = ?";
$execute = $conn->Execute($query,array($username, $password));
Which gives the error:
Fatal error: Cannot 开发者_StackOverflow中文版pass parameter 2 by reference
I have no idea why. Any ideas?
Most likely the Execute method is declared as public function Execute($query, &$params) meaning the second method is expected to be passed by reference. Thus you have to pass a variable. Try this:
$query = "select * from users where user_id = ? and PWD = ?";
$params = array($username, $password);
$execute = $conn->Execute($query, $params);
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论