An error occurred in script '/var/www/html/dukesnuz/d/phppercolate_7/ecom-2/includes_2/mysql.inc.php' on line 10:
mysqli_connect(): (HY000/1045): Access denied for user 'ecommercetwo'@'localhost' (using password: YES)
mysqli_connect(): (HY000/1045): Access denied for user 'ecommercetwo'@'localhost' (using password: YES)
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_connect(): (HY000/1045): Access denied for user 'ecommercetwo'@'localhost' (using password: YES)
[2] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/includes_2/mysql.inc.php
[3] => 10
[4] => Array
(
[_GET] => Array
(
)
[_POST] => Array
(
)
[_COOKIE] => Array
(
)
[_FILES] => Array
(
)
[_SERVER] => Array
(
[HTTP_ACCEPT] => */*
[HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
[HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
[HTTP_HOST] => dukesnuz.com
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[SERVER_SIGNATURE] => Apache/2.4.18 (Ubuntu) Server at dukesnuz.com Port 80
[SERVER_SOFTWARE] => Apache/2.4.18 (Ubuntu)
[SERVER_NAME] => dukesnuz.com
[SERVER_ADDR] => 165.227.77.107
[SERVER_PORT] => 80
[REMOTE_ADDR] => 18.119.126.27
[DOCUMENT_ROOT] => /var/www/html/dukesnuz
[REQUEST_SCHEME] => http
[CONTEXT_PREFIX] =>
[CONTEXT_DOCUMENT_ROOT] => /var/www/html/dukesnuz
[SERVER_ADMIN] => [no address given]
[SCRIPT_FILENAME] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/ch_11/admin_2/create_sales.php
[REMOTE_PORT] => 59853
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /d/phppercolate_7/ecom-2/ch_11/admin_2/create_sales.php
[SCRIPT_NAME] => /d/phppercolate_7/ecom-2/ch_11/admin_2/create_sales.php
[PHP_SELF] => /d/phppercolate_7/ecom-2/ch_11/admin_2/create_sales.php
[REQUEST_TIME_FLOAT] => 1738763892.343
[REQUEST_TIME] => 1738763892
)
[page_title] => Create Sales
[_SESSION] => Array
(
)
)
)
)
[1] => Array
(
[file] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/includes_2/mysql.inc.php
[line] => 10
[function] => mysqli_connect
[args] => Array
(
[0] => localhost
[1] => ecommercetwo
[2] => Stacy1964!
[3] => ecommercetwo
)
)
[2] => Array
(
[file] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/ch_11/admin_2/create_sales.php
[line] => 7
[args] => Array
(
[0] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/includes_2/mysql.inc.php
)
[function] => require
)
)
An error occurred in script '/var/www/html/dukesnuz/d/phppercolate_7/ecom-2/includes_2/mysql.inc.php' on line 13:
mysqli_set_charset() expects parameter 1 to be mysqli, boolean given
mysqli_set_charset() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_set_charset() expects parameter 1 to be mysqli, boolean given
[2] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/includes_2/mysql.inc.php
[3] => 13
[4] => Array
(
[_GET] => Array
(
)
[_POST] => Array
(
)
[_COOKIE] => Array
(
)
[_FILES] => Array
(
)
[_SERVER] => Array
(
[HTTP_ACCEPT] => */*
[HTTP_USER_AGENT] => Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
[HTTP_ACCEPT_ENCODING] => gzip, br, zstd, deflate
[HTTP_HOST] => dukesnuz.com
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[SERVER_SIGNATURE] => Apache/2.4.18 (Ubuntu) Server at dukesnuz.com Port 80
[SERVER_SOFTWARE] => Apache/2.4.18 (Ubuntu)
[SERVER_NAME] => dukesnuz.com
[SERVER_ADDR] => 165.227.77.107
[SERVER_PORT] => 80
[REMOTE_ADDR] => 18.119.126.27
[DOCUMENT_ROOT] => /var/www/html/dukesnuz
[REQUEST_SCHEME] => http
[CONTEXT_PREFIX] =>
[CONTEXT_DOCUMENT_ROOT] => /var/www/html/dukesnuz
[SERVER_ADMIN] => [no address given]
[SCRIPT_FILENAME] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/ch_11/admin_2/create_sales.php
[REMOTE_PORT] => 59853
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /d/phppercolate_7/ecom-2/ch_11/admin_2/create_sales.php
[SCRIPT_NAME] => /d/phppercolate_7/ecom-2/ch_11/admin_2/create_sales.php
[PHP_SELF] => /d/phppercolate_7/ecom-2/ch_11/admin_2/create_sales.php
[REQUEST_TIME_FLOAT] => 1738763892.343
[REQUEST_TIME] => 1738763892
)
[page_title] => Create Sales
[dbc] =>
[_SESSION] => Array
(
)
)
)
)
[1] => Array
(
[file] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/includes_2/mysql.inc.php
[line] => 13
[function] => mysqli_set_charset
[args] => Array
(
[0] =>
[1] => utf8
)
)
[2] => Array
(
[file] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/ch_11/admin_2/create_sales.php
[line] => 7
[args] => Array
(
[0] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/includes_2/mysql.inc.php
)
[function] => require
)
)
Create Sales
To mark an item as being on sale, indicate the sale price, the date the sales starts, and the date the sale ends. All dates must be in the format YYY-MM-DD. You may leave the end date blank, thereby creating an open-ended sale. Only the currently stocked products are listed below!