Help - Search - Members - Calendar
Full Version: Receiving Fatal Error Class Mysql Not Found
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
mari
I hope someone can help me. I'm trying to connect to the mysql database server using php object-oriented script. I receiving this error.
Fatal error: Class 'mysql' not found in /www/uuuq.com/m/a/r/maric/htdocs/GosselinGourmetCoffees.php on line 23
<?php
$DBConnect = new mysql ("localhost", "user", "password", "databasename")
if (!$DBConnect)
echo <p>The database server is not available.</p>
$DBConnect->close();


?>
swordz
You haven't defined the class mysql, so calling it gives an error.

swordz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.