PHP Code:
<?php
$link 
mysqli_connect ('localhost''root''nestle324');
if (!
$link)
{
    
$output 'Unable to connect to the database server.';
    include 
'output.html.php';
    exit();
}

if (!
mysqli_set_charset($link'utf8'))
{
    
$output 'Unable to set database connection encoding.';
    include 
'output.html.php';
    exit();
}

if (!
mysqli_select_db($link'ijdb'))
{
    
$output'Unable to locate the joke database.';
    include 
'output.html.php';
    exit();
}

$output 'Database connection established.';
include 
'output.html.php';
?>
i have Kevin Yank Build Your Own Database Driven Website Using PHP and MySQL and the above script looks exactly like the book but i keep getting this error:
Fatal error: Call to undefined function mysqli_connect() in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\connect\index.php on line 2

I dont Know what to do