"[ 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
> 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
-
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?
_
3 matches
Mail list logo