Re: [PHP-WIN] quotes in mysql

2004-04-03 Thread Luiz Miguel Axcar
Hello, > insert into table_name (describe) values('" . $check . "') I think it work: $data = addslashes ($_POST ['data']) //adding slashes before special chars // take a look on manual to get info about get_magic_quotes_gpc () to do not add slashes in a string with slashes $query = "INSERT INTO

php-windows Digest 3 Apr 2004 17:42:36 -0000 Issue 2193

2004-04-03 Thread php-windows-digest-help
php-windows Digest 3 Apr 2004 17:42:36 - Issue 2193 Topics (messages 23350 through 23359): Re: quotes in mysql 23350 by: Tony Devlin 23351 by: Ignatius Reilly Update multiple records from a text field 23352 by: kaizer boab 23353 by: Justin Patrin 2335

[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