Re: [PHP] $_POST vs $_REQUEST

[email protected] (Slack-Moehrle)
Newsgroups php.general
Message-ID <2061499056.308.1266876137622.JavaMail.root@indie.theindiecompanyllc.com>
John,

>>Then if you use a MySQL database you would escape the string like this
>>$tmp = mysql_real_escape_string($_REQUEST['yyy']);


>>mysql_real_escape_string() protect from SQL injection by escaping your 
>>string according to what your charset requires.

Good point, I should be doing that. But only to String, not data stored in MySQL as Int or Date, etc.

-ML
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.