hi,
i have installed lightspeed webserver on one my server machine, now i have placed some php script in /usr/local/lsws/DEFAULT/html/
folder but for connection mysql it giving me error in browser " Fatal error: Call to undefined function mysql_connect() in /usr/local/lsws/DEFAULT/html/db.php on line 4 "
<?php
//
//
$con = mysqli_connect("localhost","root","","database");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
already checked connection on shell prompt its working there
i have installed lightspeed webserver on one my server machine, now i have placed some php script in /usr/local/lsws/DEFAULT/html/
folder but for connection mysql it giving me error in browser " Fatal error: Call to undefined function mysql_connect() in /usr/local/lsws/DEFAULT/html/db.php on line 4 "
<?php
//
//
$con = mysqli_connect("localhost","root","","database");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
already checked connection on shell prompt its working there