Jump to content
Larry Ullman's Book Forums

Duke

Members
  • Content Count

    52
  • Joined

  • Last visited

  • Days Won

    1

Duke last won the day on September 24 2014

Duke had the most liked content!

Community Reputation

1 Neutral

About Duke

  • Rank
    Advanced Member
  1. Greetings, Are there still plans for an updated 5 th edition still in the works? If yes, is there an estimated release date? Thank you David
  2. Here is what I did... I added a value into the url link to the rss feed script. (rss.php?x=somevalue). The rss.php script checks the value in the url using if(isset($_GET['x'])) against a value in the database. (Learned this in a book by Larry Ullman). Also checks out as valid rss when submitted to feedvaliator.com. Do not need it to be super secure. Thank you David
  3. Is there a way to use $_SESSIONS in a rss feed? When I add $_SESSION, the feedvalidator.com says the script is not a valid feed..Should I ignore this and jut use it with the $_SESSION? Thx
  4. I did something similiar..I used cookies and set the pictures to change based on time. I used an if (isset($_COOKIE['picture'])) { display pix 1 }else{ display pix 2 } I am thinking there is a better way using javascript....
  5. Your Welcome...What are your thoughts on the second question....Even with minor changes....Can we actually use the finished sites live or are there copyright issues?
  6. No...only his PHP books....would this book be helpful to me in your opinion?
  7. Hi Larry. I have read and performed the exercises for 3 of your books. Subject on all is PHP. -I have learned a lot thank you- In all -that I can remember-javascript is not used for form inputs-adding data to a MySql table-The closest I found/can remember is in PHP and MySql for Dynamic Web Sites-chp 15 - a login form that uses jQuery. Have you written any books that use javascript/jQuery form input , ajax for adding data to a MySql table and validating the data ? When we create a site ie Message board in PHP and MySql For Dynamic Websites , or the 2 sites in Effortless ecommerce...Can we actually use the finished products live or are there copyright issues? Thank you
  8. I made changes in my ipn.php script ....It seems to be working now My changes: Page170 step 2 Book uses : if (($_SERVER['REQUEST_METHOD'] === 'POST') && isset($_POST['txn_id']) && ($_POST['txn_type'] === 'web_accept') ) I used: if (($_SERVER['REQUEST_METHOD'] === 'POST') && isset($_POST['txn_id']) && ($_POST['txn_type'] === 'subscr_payment') ) Page172 step 8 Book uses: if ($status === 200 && $response === 'SUCCESS') I used: if ($status === 200 && $response === 'VERIFIED') Page172 step 9 Book uses: && ($_POST['mc_gross'] === 10.00) I used: && ($_POST['mc_gross'] === '10.00') (10.00 is in single quotes) For the above the below line may also work as I had to use either quotes or double == for a line in my login.inc.php script in chp 6 && ($_POST['mc_gross'] ==10.00) (10.00 is in single quotes) Just wanted to share this in the event it helps others....I am not sure why they work ...but they do work for me....I am using PHP5.5 Thank youi
  9. I just wanted to put this out there in case it helps anyone ... (I am using PHP 5.5) For the login.inc.php script on Page 99 , step 9 In the book the row is: if ($row['expired'] === 1) $_SESSION['user_not_expired'] = true; The above line was not working for me so I used this: if ($row['expired'] === '1') $_SESSION['user_not_expired'] = true;...( I added single quotes around 1) This will also will work work: if ($row['expired'] ==1) $_SESSION['user_not_expired'] = true;...(use double ==) Thank you David
  10. Dave .info from index.php displays on my page also..only diff is on logout.php a message displays ..Loggged out ect....I am just guessing but maybe you have an error in your logout.php script...
  11. Larry, Hi...I used your solution...working great...Many Thanks....
  12. Hey Larry.. many thanks for the quick response....Error message == A System error occurred. We apologize for the inconvenience. Everything else seems to be working..except for the error message.....I did notice that on stripe dashboard...CVC Check is showing Failed... Only diff in my code is the email below... I am leaving this blank... Stripe:: setApiKey(STRIPE_PRIVATE_KEY); $email = ''; $customer = Stripe_Customer::create(array( 'description' => "Customer $email", 'email' => $email, 'card' => $token, 'plan' => 'kip_basic' )); Ahhh do not worry about it ...I will keep looking to see if I can find what is not working and then maybe that will lead me to why the error is appearing.... Thank you
×
×
  • Create New...