سلام
من زمپو نصب کردم و فایل های php رو اجرا میکنه ولی وقتی کد اتصال به دیتابیس رو میزنم ارور میده کد رو از خود w3schools زدم
<?php
$servername = "localhost";
$username = "username";
$password = "password";
// Create connection
$conn = mysqli_connect($servername, $username, $password);
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
echo "Connected successfully";
?>
و ارور زیرو دیدم
Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES) in C:\xampp\htdocs\site\index.php on line 16
Connection failed: Access denied for user 'username'@'localhost' (using password: YES)
کسی میدونه چی کار کنم
جالبه وقتی میخام ورژن php رو ببینم از صفجه ی http://localhost/phpinfo.php رو میزنم
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3
رو میاره
چه کنم