Error
prisqia opened this issue · 3 comments
Parse error: syntax error, unexpected 'Connection' (T_STRING) in C:\xampp\htdocs\php-inventory-management-system-master\php_action\db_connect.php on line 11
What should i do? im sorry, im really new at this
Might be database details are wrong or please attach a screenshot of error and code.
`<?php
$localhost = "localhost";
$username = "root";
$password = "root";
$dbname = "store";
$store_url = "http://localhost/php-inventory-management-system/";
// db connection
$connect = new mysqli($localhost, $username, $password, $dbname);
// check connection
if($connect->connect_error) {
die("Connection Failed : " . $connect->connect_error);
} else {
echo "Successfully connected";
}
?>`
change like this. As your store URL is wrong.