Ajillion PHP-MySQLi-Database-Class Update command

后端 未结 1 374
Happy的楠姐
Happy的楠姐 2021-01-21 20:13

Using the MySQLi class made by Ajillion :: https://github.com/ajillion/PHP-MySQLi-Database-Class

I would like to execute the following command

$command =         


        
1条回答
  •  逝去的感伤
    2021-01-21 20:40

    This has appeared to solve the issue.

    change line 101

    $this->_query = filter_var($query, FILTER_SANITIZE_STRING);
    

    to

    $this->_query = $this->_mysqli->real_escape_string($query);
    

    I then went on to add

    if(gettype($meta) == "boolean") return $results;
    

    after line 401

    There may be a better way to do this but this is what I did and it seems to work.

    0 讨论(0)
提交回复
热议问题