سلام
من زمپو نصب کردم و فایل های php رو اجرا میکنه ولی وقتی کد اتصال به دیتابیس رو میزنم ارور میده کد رو از خود w3schools زدم
<?php
$serveame = "localhost";
$useame = "useame";
$password = "password";// Create coection
$co = mysqli_coect($serveame, $useame, $password);// Check coection
if (!$co) {
die("Coection failed: " . mysqli_coect_error());
}
echo "Coected successfully";
?>
و ارور زیرو دیدم
Waing: mysqli_coect(): (HY000/1045): Access denied for user 'useame'@'localhost' (using password: YES) in C:xampphtdocssiteindex.php on line 16
Coection failed: Access denied for user 'useame'@'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
Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3
رو میاره
چه کنم
برچسب:
نویسنده: محمد رضا جوادیان