Am I programming the hard way?

I *always* parse my strings like this...

mysql_query("SELECT * FROM table WHERE id='".$id."'");

Could I just do this?

mysql_query("SELECT * FROM table WHERE id='$id'");

If so, is this compatable across all platforms and versions of PHP?
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to