Jump to content

aarontbarksdale

Members
  • Content Count

    75
  • Joined

  • Last visited

Community Reputation

0 Neutral

About aarontbarksdale

  • Rank
    Newbie
  • Birthday 01/01/1980

Previous Fields

  • Languages
    HTML, PHP & SQL (n00b Level 20), English...and Pig Latin.

Profile Information

  • Location
    Ocean Springs, MS
  • Interests
    God, Family, Movies, Video Games...geeky stuff!

Contact Methods

  • Yahoo
    fmulder1013
  1. Don, Thanks, tried that...didn't work. I changed the code to read $update = mysql_query('UPDATE mcn_users SET first_name = "$first_name", last_name = "$last_name", bill_address = "$address", city = "$city", state = "$state", zip = "$zip", phone = "$phone", email = "$user_email", user_pass = "$password" WHERE user_id = "$userid"'); And removed the @mysql_query($update); line...still doesn't work.
  2. Hey Guys, So, I know this information is all over the 'net...and I've scoured dozens of similar problems, however, none of the suggested fixes have helped for my code. So, I've turned back here... <? session_start(); ?><?php$email = $_SESSION['email'];$userid = $_SESSION['user_id'];include ('connect.php');$result = mysql_query("SELECT * FROM shadbarktest.mcn_users WHERE email = '$email'"); $row = mysql_fetch_array($result);// data sent from form $first_name = $_POST['first_name'];$last_name = $_POST['last_name'];$user_email = $_POST['email'];$address = $_POST['address'];$city = $_PO
  3. Nothing. The code starts the date at 12/31/1969. No information from the customer's page gets carried over to the report. No payments or anything.
  4. session_start(); is at the top of every page, first line of code. I'll try removing the ` ` around clients in the table lines to see if that works.
  5. Okay, so, it was working...now it doesn't. PLEASE HELP! NEED IT WORKING TODAY!!! require ('connect.php');$myusername = $_SESSION['myusername'];//Data from Clients table and variables associate$client_table = mysql_query("SELECT * FROM `clients` WHERE client_id = ". $_SESSION['clientid'] ." ") or die(mysql_error());$row = mysql_fetch_assoc($client_table);//Data from Payments table and variables associated$pmt_table = mysql_query("SELECT * FROM `payments` WHERE client_id = ". $_SESSION['clientid'] ." ORDER BY YEAR(pmt_date) ASC") or die(mysql_error());$row2 = mysql_fetch_assoc($pmt_table);$us
  6. Okay, I think I've resolved my issue. Since I could not get everything to generate like I needed it to, I simply added a line in the Javascript that will redirect the page upon success to the CONFIRMED page that will include the php script for adding information to the database.
  7. Okay, so I found this tutorial, http://net.tutsplus.com/tutorials/tools-and-tips/so-you-want-to-accept-credit-cards-online/ and I got it to work...the ONLY thing that I have done to change the code is my Secret/Publish Live and Test keys...and the price...all code is the same. I've tried to redirect a successful payment to another page, and an unsuccessful payment to reload. But it throws an error reading pay.php file. So, I remove the code and viola! it works again. I tried to add a CreateCustomer script (per the Stripe.com docs) and it threw the an error saying the credit card is invali
  8. Okay...so after playing around with the damn thing and making it NOT have the above error, it runs ONCE and gives me the error. Here's the code snippets that the signup.php file for processing: <head> <script type="text/javascript" src="https://js.stripe.com/v1/"></script> <!-- jQuery is used only for this example; it isn't required to use Stripe --> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script type="text/javascript"> // This identifies your website in the createToken c
  9. JSG: Here's the code for the APIRequestor.php <?php class Stripe_ApiRequestor{ public $apiKey; public function __construct($apiKey=null) { $this->_apiKey = $apiKey; } public static function apiUrl($url='') { $apiBase = Stripe::$apiBase; return "$apiBase$url"; } public static function utf8($value) { if (is_string($value) && mb_detect_encoding($value, "UTF-8", TRUE) != "UTF-8") return utf8_encode($value); else return $value; } private static function _encodeObjects($d) { if ($d instanceof Stripe_ApiResource) { return self::utf8($d->id); } else if ($d === t
  10. I have created a form, I have no issues with the FORM or entering that information into the database. I have also been able to successfully get the payment process to work. However, the problem I'm having is getting the form to pass through the payment so that (A) the same information that I store in my db can be in the stripe customer information and (B.) it continues to throw an error with regards to the subscription API. I have the subscription setup, I do NOT have a script that creates a new subscription in the API.
  11. Yes. I downloaded all of the libraries and can get it setup. I have a form but what I don't have is the understanding on how to take that information insert it into MY database. That's what I can't understand how to adjust that.
  12. Is there anyone who might be able to assist me in creating a form that will collect all the necessary information that I require for my user set-up then input that information into my database. For more info: https://stripe.com/
  13. Holy shnikees! That's the dang problem...Thanks again justsomeguy...
  14. Nothing...I tried it with ` back quotes ` and without any quotes. the error looks like it starts right at the SET portion. Var_dump returns correct information with regards to the first field name.....so, I have NO idea!
×
×
  • Create New...