Thanks Lsmj...
Well, seems from what I been reading, mysql_real_escape_string could be bypassed by exactly that, where a query expects a number. An example given is where in an sql statement integers are not surrounded by quotes, like:
SELECT * FROM articles WHERE article_id = 4;
So, one could change the url that calls for that query to be like this:
www.mydomain.com/article.php?articleid=4 OR 1=1
And that would become an injection, as no characters woudl be escaped by the mysql_real_escape_string function. So, from what I gather, ones has to check if it's numeric and appropriately handle it so it's no able to be injected...
Am I understanding this wrong??
Thanks again!