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

2004-04-02 Thread Justin Patrin
Kaizer Boab wrote: 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 the View Cart page. It is part of a loop to pull o

[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 the View Cart page. It is part of a loop to > > pull out

[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 the View Cart page. It is part of a loop to > > pull out

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

2004-04-02 Thread Justin Patrin
Kaizer Boab wrote: 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:

[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 Justin Patrin
Kaizer Boab wrote: 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 t

[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

Re: [PHP-WIN] quotes in mysql

2004-04-02 Thread Ignatius Reilly
Not so. No stripslashes required. If you add slashes when writing your PHP query, slashes will NOT be sent to the DB. In other words: $name = addslashes( "O'Reilly" ) ; $query = " INSERT ... SET name = '{$name}' " ; // etc. will simply store "O'Reilly" in the DB. The desired result. Neve

RE: [PHP-WIN] quotes in mysql

2004-04-02 Thread Tony Devlin
You can use addslashes .. which would be $check = addslashes($check); Then when you extract the information from the database to be displayed you want to you would need to stripslashes as such $check = stripslashes($check); It's typically a good idea to always add/strip slash

php-windows Digest 2 Apr 2004 12:42:07 -0000 Issue 2192

2004-04-02 Thread php-windows-digest-help
php-windows Digest 2 Apr 2004 12:42:07 - Issue 2192 Topics (messages 23344 through 23349): Re: Refresh in php 23344 by: Nadim Attari 23348 by: Svensson, B.A.T. (HKG) Mail Delivery (failure [EMAIL PROTECTED]) 23345 by: shane.caraveo.com quotes in mysql 23346

[PHP-WIN] Re: quotes in mysql

2004-04-02 Thread DvDmanDT
replace $check with mysql_escape_string($check); -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Sudeep sarath" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > Hi friends, > > I have a 'textarea' in my php page and i need to put the details typed in that textar

RE: [PHP-WIN] Re: Refresh in php

2004-04-02 Thread Svensson, B.A.T. (HKG)
And in exactly what way would you suggest that this a php functionality? It is obvious from the previous letter that the author is aware of that you can control this behaviour on the client side, but the question was how this can be achieved on the server side, and the answer to this question is:

RE: [PHP-WIN] quotes in mysql

2004-04-02 Thread Svensson, B.A.T. (HKG)
Why does the wheel need to be reinvented every second month? The solution to this "problem" is to escape all funny characters. Particular when it comes to quotes, the traditional solution for this during the last 40 years has been to quote the quote. Or use double quotes to quote singe quotes, or

[PHP-WIN] quotes in mysql

2004-04-02 Thread Sudeep Sarath
Hi friends, I have a 'textarea' in my php page and i need to put the details typed in that textarea box to my MySQL database. The content in the textarea box is(for example) : I'm a good boy. and insert string is: insert into table_name (describe) values('" . $check . "') where check is t