Hi everyone,
This is my PHP script
When I run it I get the following error message:
Thanks
This is my PHP script
Code:
<?php
$con=mysqli_connect("localhost","root","rootpass","dbname");
if (mysqli_connect_errno($con))
{
<p class="SQLconnect">
echo "Failed to connect to MySQL: " . mysqli_connect_error();
</p>
}
else
{
echo "Success connecting to MySQL! " ;
}
?>
Can anyone tell me please why am I getting hat error?Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\tiv oni\scripts\tivoni_connect.php on line 5]
Thanks