Re: [PHP] Programming the Hard Way?

2001-01-27 Thread Steve Werby
"[ rswfire ]" <[EMAIL PROTECTED]> wrote" > Am I programming the hard way? > mysql_query("SELECT * FROM table WHERE id='".$id."'"); > > Could I just do this? > mysql_query("SELECT * FROM table WHERE id='$id'"); Yes. And if $id is always numeric you could simplify it even more. Quotes are only ne

Re: [PHP] Programming the Hard Way?

2001-01-27 Thread Rasmus Lerdorf
> 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? Yes -

[PHP] Programming the Hard Way?

2001-01-27 Thread [ rswfire ]
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? _