我正在使用PDO制作一个登录系统,我的代码出现了一些问题。我的问题是,当我按下submit按钮时,在我的index.php中有一个错误,上面写着:"Fatal error: Class 'User' not found“。index.php:connection.php:class Connection{ return new
我有以下有关守则: self::$db = new PDO($dsn, self::USER, SELF::PASS); //Connect to the database, andstore the pdo object.self::$db->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);catch (PDOException $e) {}
在