Re: [PHP] replace single and double quotes

2006-08-30 Thread Jochem Maas
Rafael Mora wrote: Hi! i want to send a file or output stream in a .php, but first compress it, I tryed the example to compress files but how do i do to send as answer to the http request?? trye the other example Rafa -- PHP General Mailing List (http://www.php.net/) To

[PHP] replace single and double quotes

2006-08-29 Thread Reinhart Viane
This is the code is use to insert/update text into a database field: $sqledit=update activities set act_extra='$_POST[editextra]', act_extra_fr='$_POST[editextrafr]' where act_id=$_POST[editid]; Now both $_POST[editextra] and $_POST[editextrafr] can contain single or double quotes. So the query

Re: [PHP] replace single and double quotes

2006-08-29 Thread afan
since I had something similar as a problem, let m etry to anser ang see did I get it correct :) first, and most important: never store in DB row submitted string $act_extra = mysql_real_escape_string($_POST[editextra]); $act_extra_fr = mysql_real_escape_string($_POST[editextrafr]) $act_id =

Re: [PHP] replace single and double quotes

2006-08-29 Thread Jochem Maas
[EMAIL PROTECTED] wrote: since I had something similar as a problem, let m etry to anser ang see did I get it correct :) seems ok ... first, and most important: never store in DB row submitted string $act_extra = mysql_real_escape_string($_POST[editextra]); $act_extra_fr =

Re: [PHP] replace single and double quotes

2006-08-29 Thread Jochem Maas
Reinhart Viane wrote: This is the code is use to insert/update text into a database field: $sqledit=update activities set act_extra='$_POST[editextra]', act_extra_fr='$_POST[editextrafr]' where act_id=$_POST[editid]; this indicates 'bad' database design ... because adding a language involves

RE: [PHP] replace single and double quotes

2006-08-29 Thread Peter Lauri
, $act_id); Notice the %d for the id part if $act_id should be integer. /Peter -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 29, 2006 8:28 PM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] replace single and double quotes

RE: [PHP] replace single and double quotes

2006-08-29 Thread Reinhart Viane
, didn't think this question was about to bring up what I was looking for in the back of my head -Oorspronkelijk bericht- Van: Jochem Maas [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 29 augustus 2006 15:37 Aan: [EMAIL PROTECTED] CC: php-general@lists.php.net Onderwerp: Re: [PHP] replace single

RE: [PHP] replace single and double quotes

2006-08-29 Thread Reinhart Viane
Ok 'ill give this a shot together with the guidelines from jochen. Thx afan. -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 29 augustus 2006 15:28 Aan: [EMAIL PROTECTED] CC: php-general@lists.php.net Onderwerp: Re: [PHP] replace single

Re: [PHP] replace single and double quotes

2006-08-29 Thread Jochem Maas
Onderwerp: Re: [PHP] replace single and double quotes Reinhart Viane wrote: This is the code is use to insert/update text into a database field: $sqledit=update activities set act_extra='$_POST[editextra]', act_extra_fr='$_POST[editextrafr]' where act_id=$_POST[editid]; this indicates

RE: [PHP] replace single and double quotes

2006-08-29 Thread Peter Lauri
To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] replace single and double quotes Reinhart Viane wrote: This is the code is use to insert/update text into a database field: $sqledit=update activities set act_extra='$_POST[editextra]', act_extra_fr='$_POST[editextrafr]' where

RE: [PHP] replace single and double quotes

2006-08-29 Thread tedd
At 5:04 PM +0200 8/29/06, Reinhart Viane wrote: About the language remark: I believe you try to say I need to find a way that the client can add 25 languages without me having to change the database layout or the coding? Well I can assure you this will not be the fact. The client only needs

Re: [PHP] replace single and double quotes

2006-08-29 Thread Rafael Mora
Hi! i want to send a file or output stream in a .php, but first compress it, I tryed the example to compress files but how do i do to send as answer to the http request?? Rafa