the same query is running in other function
function get_all_details()
{
global $connection ;
$query = mysql_query("SELECT * FROM books LIMIT 5");
while( $detail= mysql_fetch_array($query))
{
echo "$detail[isbn]<br> $detail[title]<br>$detail[price]<br>$detail[discription]" ;
}
}
if (!$db_conn = new mysqli('localhost', 'poll', 'poll', 'poll'))
{
echo 'Could not connect to db<br />';
exit;
}
in new mysqli() what are parameter use , poll is db or password ??
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.