Jump to content
Larry Ullman's Book Forums

peppericious1

Members
  • Content Count

    20
  • Joined

  • Last visited

Community Reputation

0 Neutral

About peppericious1

  • Rank
    Member
  1. I have made a few slight changes to the login script in Ch 18. One change is to have a last_login field updated when a user logs in. The script works as I want it to. However, the last_login (type DATETIME) column in my db is not updating. Could anyone suggest why this col is not updating? Thanks in advance. Code is below... <?php session_start(); ob_start(); require ('includes/config.inc.php'); $page_title = "Log-in"; include('includes/header.php'); if ($_SERVER['REQUEST_METHOD'] == 'POST') { $errors = array(); // Validate the email address: if (!empty($_POST['email'])) { $
  2. That's great, HartleySan, thanks. I'll give it a go right away and if I'm still in trouble, will post back. p.s. I see from your signature that you're in Japan... I lived in the south of Honshu for 2 years back in the early 90s… a wonderful time. Mata ato de, ne!
  3. ... so that's what I have to do - to change the height of the modal mask div by referring to document.body.clientHeight as HartleySan suggested, is that right? No, I have only flicked through the table of contents thus far as I only received your book on Thursday of last week. I was working on the project above before the book arrived and must get it off my desk before I can dig in to the book...
  4. Thanks, HartleySan, for your kind comments about the site and for your help which is very informative. However, when you say 'Simply set the height of the overlay div...', could you tell me exactly how I should do that?... As yet, I have not done *any* js coding (hence my purchase of Larry's book), so a couple of pointers would be much appreciated. TIA
  5. Hi Larry and forum users. I just got 'Modern Javascript' and am eager to get stuck into it. I need to implement a modal dialog quickly for a project I'm working on, however, and am having an issue I don't know how to resolve. The modal dialog as discussed in ch.9 contains just a little text. Mine, however, will be used to display a comprehensive list of terms and conditions of several hundred words. The problem is that when the user scrolls the page down through the terms and conditions, the light-grey modal mask background does not expand. You can see the problem here. What ca
  6. ... silly, silly me... The cause of my grief was a simple typo in the IPN notification URL.... duh! PayPal was never getting to the script at all. Thanks in any case, Rob, for your help. Larry should put those sidebar tips in red... missed it completely on p154!
  7. i know the fee is being set correctly because it determines the price charged when I get to paypal and that amount is correct when I get to paypal. Regarding your suggestion to dump the contents returned by Paypal to the ipn script into a text file, how would I do that, exactly? It's my first time doing a Paypal implementation so I'm brand new to this. I've been very frustrated trying to figure out what POST variables are returned by PayPal to my ipn script. It returns lots of variables - in addition to those associated with my own button, right?... I've tried to find out from Paypal's
  8. I'm doing an application whereby parents will be registering their kids in an orchestra. The cost of registration is a sliding cost if there's more than just one kid in a given family registering for the orchestra. So, 1st kid 100 euros, 2nd kid 80 euros, 3rd and subsequent kids 60 euros, etc. The cost of registration is calculated in advance, before the registrant gets to the page with the paypal 'Pay Now' button, and is stored in a 'fee' session variable. I'm then passing the value of $_SESSION['fee'] to the paypal button... or at least that is my intention. My ipn.php script - adapt
  9. Sorry, then, for throwing a spanner in the works. I'll run those validations and will report back when/if I find out what the problem is.
  10. Hmm... no change, Larry, after I made the change you suggested above. Still four pagination digits showing... the first three of which display 5 posts each and the fourth shows nothing...
  11. Hi Larry and forum users. I have a problem that I can't resolve. I have set up my pagination script to display 5 blog posts per page. (I'm working on a local server at present so unfortunately I can't provide a link to the page). Currently, there are 15 blog posts in my db. Obviously, the pagination numbers at the bottom of my page should show three digits, '1', '2', and '3', with each page showing 5 posts. The thing is, I see four digits: '1', '2', '3'... and '4'. When I click '1', I see the first 5 records and "index.php?s=0&p=4" is displayed in my url. Clicking '2' shows me
  12. Excellent, Paul. Works like a charm. I really appreciate your help. Thanks, too, for the explanation - makes total sense now.
×
×
  • Create New...