Jump to content

raydenl

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

raydenl's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Not sure what you mean by looking at the referrer? Internet Explorer/Firefox doesn't seem to make any difference, same behaviour.
  2. This is as clear as I can be: 1) Go to the site: http://www.cartweaver.com/demos/php/basic/cw2/Admin/AdminHome.php 2) Enter username: admin, password: admin 3) Go to Store Settings -> Admin Users 4) Add a new user 5) Click "ADD" 6) Table renders, now Click your browser back button 7) You will now be at "Admin Home", not "Admin Users" My problem is: with my code, when I click the back button after adding a user I end up back at "Admin Users" with blank fields.
  3. Yeah it renders the table by refreshing the page right... so you would expect the back button to take you back to the same page before the refresh... which is what my code does... but if you click the back button on theirs it takes you to the page you were on before 'Admin User'
  4. Ummmm... PHP's a server side language... and I don't think they would be too happy to give me their source code... I have studied the HTML and they use a "submit" button with a form action equal to the name of the page, i.e. it's just doing a POSTBACK... which is exactly what I am doing
  5. Hi, I have am in the process of creating a PHP shopping cart admin site for our custome Flash based e-commerce website. I have found this demo admin site that I am using to give me ideas: Username:admin, Password:admin http://www.cartweaver.com/demos/php/basic/cw2/Admin/AdminHome.php I am wondering how they do their POSTBACKS. For instance if you go to their: Store Settings -> Admin Users, and add a new user then click the back button you go back to the page before the Admin Users page... it's as if the page didn't refresh... but it did... I've looked at the HTML and the Add button definately does a "submit". When ever I try this after I have submited, if I click the back button I end up at the same page... which is what I would expect. Any ideas on what's going on with their code???
  6. Hi, I have a custom shopping cart db that has a product table, category table and a producttocategory table. The product table has a ProductID (auto_increment) The category table has a CategoryID (auto_increment) and the producttocategory table has a ProductID and a CategoryID, this is so products can appear in multiple categories. It also has a ProductToCategoryID (auto_increment) I have also begun creating and Admin site, I have created the "Add a Product" page, this allows the user to select multiple categories from a list of available categories and when "Saved" updates the producttocategory table. The problem I am having is with the "Edit a Product" page. When they edit a product they see the current list of categories the product currently belongs to, and they can "Add" or "Delete" any of these, but the problem I find is that to accurately know if a category has been added or deleted is to, everytime the "Save" button is clicked, delete all the entries for this product from the producttocategory table and re add them... most times a product is edited the categories wouldnt be changed, but I still have to perform this routine to make sure... so if a product is edited often I am rapidly going through ProductToCategoryID's... now I could just set the ProductToCategoryID data type to be int or larger, but this seems wasteful... my question is... IS THERE A BETTER WAY???
  7. Yes I am using mysql transactions and yes I am using Innodb tables
  8. Hi, I am developing a e-commerce site in Flash using PHP and MySQL as the backend. I am now at the stage where I have to integrate the site with our payment gateway and I am not sure of the best way to do this. The following steps have to occur when the "Place Order" button is pressed: - Customer and Order information has to be entered into the database (using transactions) - The total price and a few other params have to be sent to the payment gateway The problem is I am not sure of the order I should process these steps. If I send the data to the payment gateway first and on success insert the customer and order information, if an error occurrs (causing the trans to rollback) I have an order that has been paid for but no way of knowing who made it. This is how I think I should do it: Once the "Place Order" button is pressed, insert the customer and order information into the MySQL database, on error rollback the trans and notify the user, on success send the total price to the payment gateway, if payment gateway response is an error rollback the trans and notify the user, if payment success notify the user that their payment was accepted and commit the trans. Does this seem right?
×
×
  • 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.