[PHP-WIN] Shopping Cart Woes!!

2004-01-03 Thread kaizer boab
I am trying to build a shopping cart for my college project. I am able to display items from the database, add items to the cart, but I am unable to view the items that are in the cart. In my "view_cart.php" page I receive the following error: "You have an error in your SQL syntax. Check the manua

[PHP-WIN] Re: Shopping Cart Woes!!

2004-01-06 Thread kaizer boab
Thanks for the replies, much appreciated. I have now managed to get the query to work properly. As Justen suggested I added "WHERE" and the column name. "Kaizer Boab" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am trying to build a shopping cart

[PHP-WIN] Calling a function from a hyperlink

2004-01-10 Thread kaizer boab
Is it possible to call a function from a hyperlink, and if so how do you go about it? Thanks in advance, Boab -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-WIN] Re: Calling a function from a hyperlink

2004-01-10 Thread kaizer boab
I want to have my addItem() function in all shopping pages but I only want it accessed via a link. Is this possible? "Kaizer Boab" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is it possible to call a function from a hyperlink, and if so how do you go >

Re: [PHP-WIN] Re: Calling a function from a hyperlink

2004-01-10 Thread kaizer boab
Thanks Stuart, I'll give that a try. "Stuart" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > kaizer boab wrote: > > The problem I have is this: > > > > I have built a shopping cart using a session. I have an addItem() function, > >

[PHP-WIN] Joining Form Fields To Insert into Database

2004-01-25 Thread kaizer boab
I am developing a customer registration form which gathers the usual details. I have a field in my MySQL table 'customer_dob'. On my form I have list boxes for 'dob_day', 'dob_month' and 'dob_year'. I was wondering is it possible using "INSERT" to join these three fields together to insert into '

Re: [PHP-WIN] Joining Form Fields To Insert into Database

2004-01-25 Thread kaizer boab
Ellingsworth > http://mail.med.upenn.edu/~jellings/ > AIM: vc2000support > > -Original Message- > From: kaizer boab [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 25, 2004 4:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] Joining Form Fields To Insert into Da

[PHP-WIN] Update multiple records from a text field

2004-04-02 Thread kaizer boab
Hi everybody, I have built a shopping cart using tables. I am able to add items and remove items from the cart. The problem I am having is updating the quantities in the cart. When users view the cart they can see the quantity in a text field. I want to allow users to type in the quantities they

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread kaizer boab
Hi Justin, I only have the one qty field in the View Cart page. It is part of a loop to pull out all the quantities from the cart. It is retrieved via the script below: Since the qty

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread kaizer boab
I have changed it to name="qty[]" . How would I reference it on my processing script? "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kaizer Boab wrote: > > > Hi Justin, > > > > I only have the one qty field in th

[PHP-WIN] Re: Update multiple records from a text field

2004-04-02 Thread kaizer boab
I have changed it to name="qty[]" . How would I reference it on my processing script? "Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kaizer Boab wrote: > > > Hi Justin, > > > > I only have the one qty field in th

[PHP-WIN] Re: Update multiple records from a text field

2004-04-03 Thread kaizer boab
This has still got me stumped. I tried the following script to update the table but I'm still experiencing the same result, only one row updates, the rest remain unchanged. while (list($k, $v) = each($qty)) { $newQty = $v; $update = "update cart set qty = $newQty WHERE trackerId = $trackerId A

[PHP-WIN] SOLVED: Re: Update multiple records from a text field

2004-04-04 Thread kaizer boab
Thanks Justin and Khashan for all your help. Managed to resolve the issue. I named qty field using the albumId as key and using qty as value. All I had to do then was update the query in the while loop. "Kaizer Boab" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED

[PHP-WIN] Create A Format Toolbar

2005-10-21 Thread kaizer boab
I was wondering does anybody know how to create a formatting toolbar? Thanks, kaizer boab -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php