• I have codes with PDO, such as myPDO->prepare(), but it return error:
    Fatal error: Uncaught Error: Call to a member function prepare() on null

    when I run the same codes on independent .php file, it executes normally.
    Kindly help.
    Thanks,

The topic ‘could not use PDO with ‘ -> ‘ command’ is closed to new replies.