Jump to content
Larry Ullman's Book Forums


  • Posts

  • Joined

  • Last visited

daddyman's Achievements


Newbie (1/14)



  1. Problem solved. Dumped new users, re-loaded and was able to get it to function.
  2. I am super excited to finally be able to connect HTML, CSS, and PHP to SQL database... I've managed to make scripts 9.2 and 9.3 work (typed from scratch and debugged) when relying on root user access. However, I cannot get it to work when I attempt to access via new user that I created using PHP MyAdmin and guidance from Appendix A (i.e. when I alter register.php file to reflect the other user login and pw). I've been able to change the root password and that worked fine, but no matter what I do I can't get the new user to work, even if I give global privileges to that profile. I get error: "Could not connect to MySQL: Access denied for user 'XXXX@'localhost' (using password: YES)" Any insights you can provide are appreciated.
  3. In Chapter 3, page 79 you include code (link tags) in the index page to link to the separate files for the header and footer CSS files. For the footer, you use a simple relative link to the footer file, but for the header you appear to use an absolute reference to an external file (i.e. "https://maccdn.....bootstrap.min.css"). I have created the local header file as instructed. When I alter it locally, the changes are reflected in the active page, so I know that the header content is indeed being driven by the local file. So my question is: Why is the link tag to the header file not coded simply as a relative link (like the footer is)? And why, if the code refers to an external file as written, is the header formatting driven off the content of that external file (instead of my local one)? Thanks
  4. Makes sense. I should have recognized that, but was looking at it in the context of what was within the quotes, rather than simply escaping the quotes. Thank you very much.
  5. In Script 2.6 (page 61) you introduce the syntax for using the "foreach" loop to use array to generate selection options for the pull-down (in this case, the months of the year). In line 24 the opening Option Tag has the value attribute typed as follows: value=\"$key\" Can you please explain the use of the back slashes that appear both before the variable name and also within the quotes following the variable name? I don't believe it is explained previously in the text, but it is used repeatedly throughout the rest of the chapter. Thank you.
  • Create New...