Jump to content
Larry Ullman's Book Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


DustyP last won the day on November 10 2012

DustyP had the most liked content!

Community Reputation

2 Neutral

About DustyP

  • Rank
  1. I haven't learned how to do subscription billing. I haven't even used Stripe live for single payment yet. But I like the idea. In fact, the storage company I'm doing this for manually charges customer's credit cards each month that they have on file (not digitally but in a real locked file).
  2. Thanks for the reply. I am making an online payment script for a storage rental company with 700+ units. Right now the estimate is that between two and four hundred renters will pay their monthly storage rent online. The way they do it is that whatever day of the month someone rents a unit, that day is their monthly due date. If they're five days late on making their payment a $10 late fee is added to their payment due amount. If one month late another $10 late fee is added and so on until they are four months past due and the account is closed and legal proceedings are put into action.
  3. My Stripe logs do not have anything listed. Both my form page and payment processor page are https. Here's my form: <form id='payment-form' action='https://www.mydomain.com/members/credit-pay.php' method='post'> <fieldset> <span class='help-block'>You can pay using: Mastercard, Visa, American Express, JCB, Discover, and Diners Club.</span> <div class='alert alert-info'><h4>JavaScript Required!</h4>For security purposes, JavaScript must be enabled on your computer or device in order to complete your order.</div> <legend>Pay with Cred
  4. I'm using Stripe (in test mode) and on my payment page I'm getting the error: On the payment page: // Need a payment token: if (isset($_POST['stripeToken'])) { $token = $_POST['stripeToken']; // Check for a duplicate submission, just in case: // Uses sessions, you could use a cookie instead. if (isset($_SESSION['token']) && ($_SESSION['token'] == $token)) { $errors['token'] = 'You have apparently resubmitted the form. Please do not do that.'; } else { // New submission. $_SESSION['token'] = $token;
  5. Oops. Okay, I'm going to my room now. Thanks. Looking forward to reading the book - the whole book.
  6. I just received the book and I immediately turned to chapter 18 and I noticed that the escape_data function is no longer being used in the mysqli_connect file. That's disappointing. I noticed however, that much of the same proceedure for working through the POST variables includes pretty much everything the escape_data fucntion from the old book (PHP and MySQL for dynamic websites 2nd edition) used. I tried adding an escape data function to the mysqli_connect file but it threw an immediate error. Unexpected "{" (the first one). I guess this function is no longer good with php 5.
  7. Thanks, I just bought the book (PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)) on Amazon. Be here in a couple weeks.
  8. My question is kinda-sorta related to this book. I have it and I've used it so much that it is coming apart. But, my new web hosting servers are using Php 5 and MySQL 5 and I'm finding that some of the code I'm using isn't working right, when they did in Php 4 and MySQL 3, etc. Plus, when I go to PHP forums and ask a question I get chewed out for not using mysqli. In the back of this book in chapter 14 it uses mysqli, but there is no example of it being used in an update query. I know that I should be able to put 2 and 2 together and figure it out, but it works better for me to actually se
  9. I found the source of my problem... me. I use a functions page for my websites that contains the header, footer and other code for my members area pages. I call it into a page through an include. This allows me to make additional pages quickly & easily and it cuts down on the amount of code/html I have to put on a page other than that which is specific to that individual page. If works great, but in an effort to further minimze the information I put on my pages I put the require_once('includes/mysqlconnect.php'); on the functions page and appearantly this is what created my problem
  10. In Chapter 13 the mysql_connect.php script. I have all the information on this script that is in the book and the script from the supporting website. I have it on the page at the top. I'm getting this error for each of my fields: This is line 37: The error page also has this: This is line 223: "mysql_close($dbc); // Close the database connection." My php version is 5.2.17 When I run phpinfo.php I see no listing for "mysql_real_escape_string", but "magic_quotes_gpc" is turned on. Thanks Dusty
  • Create New...