Class PDO errors



  • Code implementation http://phpfaq.ru/pdo/pdo_wrapper#code There's a mistake:

    Parse error: syntax error, unexpected '[' in

    If you take off the run, you're gonna have to go,

    run($sql, $args = [])
    

    another error arises:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'PDO' does not have a method 'select' in

    Tell them how to get rid of them. First, it's a mistake to expect one parameter, and when I clean the $args, it says the opposite that two parameters are expected. A story!



  • We need to update the PHP version.

    Short syntaxis to determine the masses, [] There has been a language for more than five years, and even the version of the RSR (5.4) in which it appeared is no longer supported.

    But as a bypass, you can use classic syntaxis, array()




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2