Alex1
-
Posts
2 -
Joined
-
Last visited
Posts posted by Alex1
-
-
This is sort of long.
Chapter 12
I am going through chapter 12 in the Quick Start Guide PHP for the Web and am having an issue creating the myblog database on PHPMyAdmin from Installation and Configuration A. I have created the database in PHPMyAdmin with the database button. This gives me the option to make a table and columns. I am not sure where I am supposed to put the text:
I am not sure where this is supposed to go on PHPMyAdmin in order to make the database. The book doesn't explain where it is supposed to go.
When I try and connect to mysql I get the error:
QuoteWarning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES)
Could not connect to the database
I am guessing that this is because I have not been able to make the database, and that it might go away after I make it.
I am using Mysql Workbench which seems as well as XAMPP. The server status is able to run but it is not able to connect. The user is root
I am also having other errors with the other pages, such as Edit an Entry
QuoteWarning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES) in C:\xampp\htdocs\PHP\Chapter 12\edit_entry.php on line 13
Warning: mysqli_set_charset() expects parameter 1 to be mysqli, bool given in C:\xampp\htdocs\PHP\Chapter 12\edit_entry.php on line 16This page has been accessed in error.
Warning: mysqli_close() expects parameter 1 to be mysqli, bool given in C:\xampp\htdocs\PHP\Chapter 12\edit_entry.php on line 72This will probably be fixed after I am able to connect to Mysql.
Chapter 13
The page titled My Site of Quotes does not work because I am getting a lot of errors.
This might be because I have not gotten Mysql to run yet, and it might be fixed after. The other pages have similar issues.
I also wanted to check to make sure that I have the files set up correctly.
Here is what it is supposed to look like:
Here are how my files are set up
PHP for the Web chapter 13 error help (long)
in PHP for the Web: Visual QuickStart Guide (5th Edition)
Posted
I have been getting some errors in my chapter 13 site and I am not sure how I can fix them. I am able to login with the login.php page.
When I do I get this error.
?php // Script 13.4 - footer.html // Display general admin links... // - if the user is an administrator and it's not the logout.php page // - or if the $loggedin variable is true (i.e., the user just logged in) if ( (is_administrator() && (basename($_SERVER['PHP_SELF']) != 'logout.php')) OR (isset($loggedin) && $loggedin) ) { // Create the links: print '
When I go to the add_quotes.php page I get this error.
When I try and add a quote I get this list of errors.
Here is my add_quotes.php code
I am getting a red underline error on the ! is administrator line
I added LINE is # where each line error is for my error list above