When I run this in the browser, instead of showing me just 'Error adding new author', I am also shown everything inside the MySQL.php script file which is a lot of class definition.<html>
<body>
<?php
require_once ('MySQL.php');
if(isset($_POST['submit']))
echo('Error adding new author: ' );
?>
<form action="<?php echo $_SERVER['PHP_SELF']?>" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" name="submit" value="SUBMIT" />
</form>
</body>
</html>
2 ) I am also constantly getting an error for PDO installation.
Fatal error: Class 'PDO' not found in F:\Apache\htdocs\izineu\php\MySQL2.php on line 10
I have checked the php.ini file and I have uncommented the parts which have pdo in them.
Please help me out here !!!!