URL localhost/foldername/checkcon.php を指定してブラウザーで実行すると。それは常にエラーを投稿します
ここに私のコードがあります
<?php
$con=mysqli_connect("192.168.1.130","root","color","inventory1");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT * FROM tblemployee");
while($row = mysqli_fetch_array($result))
{
echo $row['Employee_ID'] . " " . $row['Employee_Name'];
echo "<br>";
}
mysqli_close($con);
?>