Fix cart.php syntax error and add PHPDoc hints for VS Code
Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
274d17a645
commit
f0dfa92bec
8 changed files with 59 additions and 0 deletions
|
|
@ -11,6 +11,13 @@ require_once(__DIR__ . '/includes/config.inc.php');
|
|||
require_once(__DIR__ . '/includes/login_required.php');
|
||||
require_once(__DIR__ . '/includes/log.php');
|
||||
|
||||
// Variables from config.inc.php (helps IDEs understand scope)
|
||||
/** @var string $db_host Database host */
|
||||
/** @var string $db_user Database user */
|
||||
/** @var string $db_pass Database password */
|
||||
/** @var string $db_name Database name */
|
||||
/** @var string $table_prefix Table prefix for database tables */
|
||||
|
||||
// Connect to DB (use mysqli like other website modules)
|
||||
$db = @mysqli_connect($db_host, $db_user, $db_pass, $db_name);
|
||||
if (!$db) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue