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)
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
(
)

[page_title] => Coffee - Would'nt you Love a Cup Right Now?
)

)

)

[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_15/index.php
[line] => 11
[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
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
(
)

[page_title] => Coffee - Would'nt you Love a Cup Right Now?
[dbc] =>
)

)

)

[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_15/index.php
[line] => 11
[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/ch_15/index.php' on line 15:
mysqli_query() expects parameter 1 to be mysqli, boolean given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_query() expects parameter 1 to be mysqli, boolean given
[2] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/ch_15/index.php
[3] => 15
[4] => Array
(
[_GET] => Array
(
)

[_POST] => Array
(
)

[_COOKIE] => Array
(
)

[_FILES] => Array
(
)

[page_title] => Coffee - Would'nt you Love a Cup Right Now?
[dbc] =>
)

)

)

[1] => Array
(
[file] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/ch_15/index.php
[line] => 15
[function] => mysqli_query
[args] => Array
(
[0] =>
[1] => CALL select_sale_items(false)
)

)

)

An error occurred in script '/var/www/html/dukesnuz/d/phppercolate_7/ecom-2/ch_15/views/home.html' on line 10:
mysqli_num_rows() expects parameter 1 to be mysqli_result, null given
Array
(
[0] => Array
(
[function] => my_error_handler
[args] => Array
(
[0] => 2
[1] => mysqli_num_rows() expects parameter 1 to be mysqli_result, null given
[2] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/ch_15/views/home.html
[3] => 10
[4] => Array
(
[_GET] => Array
(
)

[_POST] => Array
(
)

[_COOKIE] => Array
(
)

[_FILES] => Array
(
)

[page_title] => Coffee - Would'nt you Love a Cup Right Now?
[r] =>
[dbc] =>
)

)

)

[1] => Array
(
[file] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/ch_15/views/home.html
[line] => 10
[function] => mysqli_num_rows
[args] => Array
(
[0] =>
)

)

[2] => Array
(
[file] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/ch_15/index.php
[line] => 17
[args] => Array
(
[0] => /var/www/html/dukesnuz/d/phppercolate_7/ecom-2/ch_15/views/home.html
)

[function] => include
)

)

Chapter 15 Exercises

  • Using Stripe

About Clever Coffee, Inc.

Clever Coffee, Inc. has been selling coffee online since 1923. For years, Clever Coffee, Inc failed to make a profit, due to the lack of computers and the Interent. Yadda, yadda, yadda

It 's safe to shop here, promise!