Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6347129
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:09:05+00:00 2026-05-24T21:09:05+00:00

I have an IPN script that is doing some work on the amount of

  • 0

I have an IPN script that is doing some work on the amount of a payment received, and when a certain amount is received, it is updating their license code in the database after verifying it with PayPal’s IPN service.

This SQL isn’t right, it’s not updating. The rest of my code is fine because it sends an email, but where’s the SQL error at? It’s really late and I’m spacing out…

if ($amt == "77.00")
    { 
     mysql_query("UPDATE login_users SET license_code = 3 WHERE username = ". $username ."") or die(mysql_error()); 
      // Change license code in database
    } 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:09:06+00:00Added an answer on May 24, 2026 at 9:09 pm

    You need quotes around the user name if it’s a string.

     WHERE username = '". $username ."'
    

    Also make sure $username is properly sanitized:

    $username = mysql_real_escape_string(... wherever the value is coming from ...);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have received an IPN that tells me the transaction (txn_id=123) is completed
I have some problem with an IPN script (paypal notification system). I have decided
I have a PayPal IPN file that doesn't seem to work. It is very
I'm having some trouble choosing between PayPal's Instant Payment Notification (IPN) and Payment Data
I have an IPN script for PayPal, and as I can only rely on
I have the following C# ASP.Net code for processing PayPal IPN after purchase. I
I'm using Micah Carrick's PHP Paypal IPN Integration Class and have code in paypal.class.php
I have implemented IPN in paypal which updates about the payment in our server's
I have this code at the end of my models.py file from paypal.standard.ipn.signals import
I'm trying to have the PAYPAL IPN work with 2 different sites, I can't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.