Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


benjamin.morgan last won the day on January 28 2013

benjamin.morgan had the most liked content!

Community Reputation

6 Neutral

About benjamin.morgan

  • Rank
  1. It does help for another set of eyes to look at it, but it also helps to read over it a few times, then take a break, and a couple of days later come back and study it, if you still can't find anything, dissect it and take it one line at a time! Read the logic out loud to make sure that is what you wanted. It has really helped me find errors in the code this way.
  2. Basically it would be written as this. It just takes the discount value and subtracts it from the total and assigns the new value to the total variable. The second one would be the same except with the multiplication operator. total = total - discount;
  3. Not sure but I found this in the code. Not sure if the dollar sign being inside the ' would make the email act up but you never know. $q = "INSERT INTO l30trsb_jobsite (first_name, last_name, email, pass, registration_date) VALUES ('$fn', $'ln', '$e', SHA1('$p'), NOW() )";
  4. I haven't read the book yet, but I think this is the one being used. www.edg3.co.uk/templates/ It's called Plain and Simple.
  5. There is an errata page as well, http://www.larryullman.com/books/modern-javascript-develop-and-design/errata/ . That is one of the errors on there.
  6. I think the hardest part for people losing weight is not just eating healthy, but forgetting to exercise (moderately for around 30 minutes a day). Daily exercise boosts metabolism so the calories burn off faster. I like to run, but I know a lot of people that like riding bikes or using an exercise bike. The problem for me is that I don't like eating healthy! Plus I love coffee.
  7. It's also in the errata. "The name and id values of the comments input need to be lowercase."
  8. Which you can set a preset text before they enter a date as the value of the input. <!-- Will change when they click a date --> Date: <input type="text" id="datepicker" value="Please select a date!">
  9. I like to be safe than sorry, there has been plenty of times when I forgot that little function and couldn't get the script to work.. Even when I tested it it wouldn't work without the ready function. @Christoper, don't forget you can shorten the ready function to this if you like. $(function() { }); Basically the point of the post was to have an input element not a paragraph element.
  10. jQuery (don't forget the document.ready function. <script type= 'text/javascript'> $(document).ready(function() { $('#datepicker').datepicker(); }); </script> HTML Date: <input type="text" id="datepicker" value="Please select a date!">
  11. Mine is to become more advanced with PHP and get back in shape. Hopefully be able to run 2 miles in under 14 minutes. (Gonna take a lot of work for me) What are y'alls New Year Resolutions?
  12. I do hope you mean index.php or the includes won't work. When viewing index.php view the source of the page. Click on the css link in the source. If it doesn't show the css and says something like page not found check the link. Find the stylesheet in the folder and open it in the browser. Compare the two links to check for any errors. Also make sure there are html and head tags, and all tags are closed properly.
  13. That is chapter 14 in the php and mysql for dynamic websites 4th ed. Not sure how in depth it goes though.
  • Create New...