php scripts not working in xampp & browser shows no errors

Alles, was PHP betrifft, kann hier besprochen werden.

php scripts not working in xampp & browser shows no errors

Postby Santhosh755 » 12. January 2022 16:20

I have an Problem for simple Program in Xampp

Config.php // Correct
<?php
error_reporting(0);
$con = mysqli_connect('localhost','root','','test');
If(!$con) {
die("Connection Error");
}
else {
echo("Connection Successfull");
}
?>

Browser Chrome Url : localhost/PHP1/Config.php

Output is Correct - Connection Successfull


<?php
error_reporting(0);
$con = mysqli_connect('localhost','root','','tes');
If(!$con) {
die("Connection Error");
}
else {
echo("Connection Successfull");
}
?>

But this was an Error in Database tes

But the output will be empty.
Santhosh755
 
Posts: 1
Joined: 12. January 2022 16:09
XAMPP version: 8.1.1
Operating System: Windows

Return to PHP

Who is online

Users browsing this forum: No registered users and 8 guests