Fatal error: Call to undefined function mysql_connect()

#1
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
 

Ghani

New Member
#5
Hi,

no Sir i haven't found mysqli or mysqlnd in said section.

i have tried

yum install lsphp-mysql
and
yum install lsphp-mysqlnd
but cann't install it.
No package lsphp-mysql available.
No package lsphp-mysqlnd available.

how to install it ?
 
Top