Please help
Posted: Thu Aug 22, 2013 9:45 am
Hi Everyone
I am facing this error do not know how to fix it
with codeing
<?php
$con=mysql_connect("localhost","root","01959719");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
// Create database
$sql="CREATE DATABASE customer";
if (mysql_query($con,$sql))
{
echo "Database aqurium created successfully";
}
else
{
echo "Error creating database: " . mysql_error($con);
}
?>
Call to undefined function mysql_connect()
I already check on the extention on php.ini file in the folder. Please kindly help .
I am facing this error do not know how to fix it
with codeing
<?php
$con=mysql_connect("localhost","root","01959719");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
// Create database
$sql="CREATE DATABASE customer";
if (mysql_query($con,$sql))
{
echo "Database aqurium created successfully";
}
else
{
echo "Error creating database: " . mysql_error($con);
}
?>
Call to undefined function mysql_connect()
I already check on the extention on php.ini file in the folder. Please kindly help .