> > So what is the appropiate way?
> >
> > a) mysql_query("SELECT col FROM foo WHERE bar='test'");
> > b) mysql_query('SELECT col FROM foo WHERE bar="test"'');
> > c) mysql_query('SELECT col FROM foo WHERE bar=\'test\''); ?
>
> IMO, a) because using " inside a query is not valid SQL and escaping
> decreases readability.

But why do you then change every query from double to single quote?
imho that is very inconsistent (when you agree on a) to have mixed double and 
single quotes in queries.

Do whatever you want - seems like some people have too much time..

Georg

Reply via email to