www.webdeveloper.com

Search:

Type: Posts; User: mrzebra

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,203

    Solved it...I was missing

    Solved it...I was missing <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> at the top of the page....such a simple fix. lol.
  2. Replies
    6
    Views
    1,203

    Ok, so I have it aligned center like I want. I...

    Ok, so I have it aligned center like I want. I just can't get the layer with the silver bar on the top and bottom that slides across the menu items to display properly in IE. In IE, it displays like...
  3. Replies
    6
    Views
    1,203

    I added clear: both to the footer and it still...

    I added clear: both to the footer and it still isn't working in IE. It displays like it should in firefox.
  4. Replies
    6
    Views
    1,203

    [RESOLVED] Navigation Menu on all pages

    Hi,

    I'm not sure if I'm posting this in the correct place but I'm trying to put a horizontal navigation menu in my header div so I can include it on all my pages, so all I have to do is update the...
  5. Thread: php code help

    by mrzebra
    Replies
    12
    Views
    2,393

    The only place I'm updating the table is on the...

    The only place I'm updating the table is on the success.php page, once the payment has been made. My clearance.php page just reads the table and displays the product name, description, price and...
  6. Thread: php code help

    by mrzebra
    Replies
    12
    Views
    2,393

    Ok, so testing it on localhost with 2 clearance...

    Ok, so testing it on localhost with 2 clearance items in the cart it displays the following:

    Notice: DEBUG: Quatntity updated: UPDATE clearance SET stock = stock - 1 WHERE productId = '0002' in...
  7. Thread: php code help

    by mrzebra
    Replies
    12
    Views
    2,393

    Ok, so i put this after the query: echo date('F...

    Ok, so i put this after the query:
    echo date('F d, Y g:i a');

    and this is what it displayed:
    April 09, 2011 4:35:58 pm
    April 09, 2011 4:35:58 pm


    I had two clearance items in the cart.
  8. Thread: php code help

    by mrzebra
    Replies
    12
    Views
    2,393

    I do have a javascript function that redirects...

    I do have a javascript function that redirects back to my home.php page, but I have it disabled for testing the sucess.php page.
  9. Thread: php code help

    by mrzebra
    Replies
    12
    Views
    2,393

    My clearance items table is the only one I'm...

    My clearance items table is the only one I'm keeping track of stock in. The rest of the products on the site are made as people order. So, the only place I have the stock decrementing is on the...
  10. Thread: php code help

    by mrzebra
    Replies
    12
    Views
    2,393

    Ok, so I made that change to simplify the code. I...

    Ok, so I made that change to simplify the code. I printed each item in the cart and each item is printed once, the quantity of each is correct, the id's are correct but it's taking out double the...
  11. Thread: php code help

    by mrzebra
    Replies
    12
    Views
    2,393

    php code help

    Hi,

    I'm trying to update my clearance items table. I want the "in stock" quantity to be adjusted when the user completes the checkout. This code is in my success.php page where the user it taken...
  12. I'm kinda lost here....I don't know what to put...

    I'm kinda lost here....I don't know what to put in this section:



    if(ajaxRequest.readyState == 4){

    alert(url);
    // what do I put in here????

    }
  13. I need the variables saved to php variables so...

    I need the variables saved to php variables so when the person clicks "add to cart", the gift box info (product id, product description, the 4 scents selected) will be passed to the cart. Under the...
  14. Passing javaScript variable value to PHP variable using AJAX

    Hi, I'm having a problem trying to get javaScript variable values sent to php variables using AJAX. I've read numerous tutorials and I'm a little confused. The book I have on AJAX isn't helping...
  15. Replies
    4
    Views
    12,599

    Does anyone have any suggestions??? Is there...

    Does anyone have any suggestions??? Is there another easier way I should be doing this that I'm overlooking??
  16. Replies
    4
    Views
    12,599

    Here is my code for the gift Basket Page: ...

    Here is my code for the gift Basket Page:



    <?php
    session_start();
    require_once("connect.php");
    error_reporting(0);
    ini_set('display_errors','1');
    ?>
  17. Replies
    4
    Views
    12,599

    Ok, so I decided on doing the POST method to get...

    Ok, so I decided on doing the POST method to get the value of the javaScript variable into PHP. Now I'm having a problem that I'm not sure on how to correct.

    When I post the javascript variable...
  18. Replies
    4
    Views
    12,599

    Ok, so I did some research and I believe I found...

    Ok, so I did some research and I believe I found a few options on how to do this.

    Option 1: ajax -- which I'm clueless about...lol

    Option 2: create hidden fields -- Which I don't think would...
  19. Replies
    4
    Views
    12,599

    Help with Dropdown Menu & Cart

    Hi,

    I'm also running into a small problem, or it may be a large one....I don't know. Hahaha. I'm creating a gift box page where the person selects a scent for each item that is in the gift box. I...
  20. Replies
    0
    Views
    8,564

    Won't Add Item to the Cart

    Hi,
    I'm hoping someone can lead me in the right direction here. I'm creating a simple shopping cart that I will later pass on to Paypal for payment but my problem is, it won't add the items to my...
  21. [RESOLVED] help with PHP, database & textboxes

    Hi,

    I currently have 2 tables in my database. One called "products" and one called "productScents". Each table has an id column. Now on my page I have a while loop to populate all the scents for...
  22. Replies
    0
    Views
    3,164

    [RESOLVED] Shopping Cart - PHP code help

    Hi,
    I'm trying to create a shopping cart and I'm using XML as a database, which I'm not sure if it's the correct thing to do. I was thinking about maybe using mySQL instead.

    What I'm trying to...
Results 1 to 22 of 22
HTML5 Development Center



Recent Articles