Jump to content
Larry Ullman's Book Forums

JayAtHome

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by JayAtHome

  1. dmx1, You are building the complete list item as you iterate through the loop. Do this... open a notepad. Manually look/loop through the code. 1. When you get to echo, take that part and put it in the notepad. 2. After it is in the note pad replace any variable names with their corresponding values. $k is symbolic for the "Key" part of the Key-Value pair. $v is the symbolic for the "Value" part of the Key-Value pair. In case you missed it the Key / Values are on page 67. step 4. 3. if you did this correctly, you will end up with the same thing as figure 3.9 on page 68. Your web server will do exactly as you did (if you did it correctly) and build a "li" or List Item for each time through the loop. The "active" class part is to apply special CSS "Class" to the element so it will display differently. 4. If this helps you please drop a line at jay.a.carlson@gmail.com /r Jay Please checkout my slightly modifed website at https://J5CMarketing.com
  2. Google "Chrome" is wanting all sites to use SSL at all times or will mark pages as not secure. You can still have the site searchable and viewable without signing in if you want it that way. Then when they log in, they get an id number that matches the cart id. (cid) https://www.theverge.com/2018/2/8/16991254/chrome-not-secure-marked-http-encryption-ssl
  3. This probably doesn't help at all, but I have had a website working for over a year, and just recently it broke because it can't start the session. It seems something changed from my hosting service, that affected the sessions. I have seen some posts that indicate the problem was that the session write directory was non-existent, or that there were no write permissions to that directory. I haven't investigated enough to fix my problem. I have decided to start building a machine to host my web site from my home. It will probably take a month or more for me to get everything set up correctly. But at least it will be cheaper for a better machine, and I won't have any surprises from some back-end change. (In all fairness, my hosting company has been pretty good, and if I spent a little time on the issue I could probably get it working again, but I am working on creating a build from source LAMP system, that will create /j5c/p001 (my production directory) and when I change something, I will create /j5c/p002 etc. So that I will always have a fallback within seconds. The j5c is part of my company name. Anyhow, I am going to create this so that other people can use the tool I create to create their own LAMP system from source. If this is something that you would be interested in please send an email to jay.a.carlson@gmail.com
  4. Jan, I think more important than reading is browsing. Look through whole books just turning pages, and indexing things in your mind that you think would be helpful. Next decide what you want to code. Ruff out your code in comments. Fill it out with more and more detail until you can turn your comments into code. Go through your mental index of the topics you looked at and see if any apply to what you want to do. If there are any read them, if not google for them. Implement the simplest thing you can, and the important part is to make sure it works. Then improve it. Does it do everything you need?, Yes -- look to see if it can be simplified, or optimized, or turned into a function or method. No -- Add the features your missing. After about 20 revisions you should have some code you can be proud of. After it works the way you think it should, try to break it with bad input, bad parameters, and see what happens. You don't want to bleed error messages that give away information to the public, but you do want to find what breaks your code, then add more code to either make it fail gracefully, or go to some failsafe mode. Always try to work with small chucks that you can test and verify before moving forward. Thats my thoughts.
  5. Thanks for responding. Thats quite a feet to take questions from a million users, AND write a book at the same time...I am impressed!!!
  6. I am not sure on this but I have re-written my website with pdo database access. It took an a long time to make all the changes and test everything, but I am happy with it. I just am not sure it was worth the time. I am asking now before I implement the second site (the ecommerce site).
  7. Yes, my web page was built from "Effortless E-Commerce with PHP and MySql second edition". This was my first website in many years, and my has everything changed. I learned everything from the book, then re-wrote the site about 5 times to add what I thought would be needed for me. I added a few improvements such as an age for each topic, being able to select multiple categories for each topic, and making the categories hierarchical. To name a few. Then I added a section for advertisements where companies could make simple adds and display them accourding to a distribution zone that they select. Thanks Larry for creating a great book that teaches a lot. I am still working on making it work as a business, but its a start.
  8. I was able to complete the first site, with some enhancements. I would like anybody, and everybody, including Larry (my hero) to check it out. https://www.j5cmarketing.com You need to register to see anything, and you can send me a feed back if you like. 90 Days free, then if you like, you can pay with Paypal....
×
×
  • Create New...