Jump to content

Mikey

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by Mikey

  1. Well if you want to use PayPal's donation features, first ensure you have a business account on PayPal.

     

    Then visit PayPal and get their button code, and you'll also need to use the PayPal IPN in order to get things like response codes to your site which you can then log in your database and even grab details like the email address from.

  2. The HTML you have posted is not valid unfortunately. For one you're not closing your IMG tag...

     

    Unless you perhaps need something like this:

     

    <td><a href='#' onclick='trigger("{$row[LocationPix]}");'><img src='http://www.menuhead.net/Images/Buttons/PShotClear.png' /></td>

     

    Otherwise, as Jessica said I'm not entirely sure what you're asking.

  3. uniqid isn't usually random enough, for example it may (extremely slim chance here) generate the same integer twice. Though you may be able to use uniqid in conjunction with a MySQL field which has a unique index set on it.

     

    Personally I'd make a php function which generates a random string or a pre-determined length, (for example, PO9028341), and then check the database within that function to see if that string already exists as a purchase ID. If it does, recursion, if it doesn't, return. :)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.