[PHP] Queries - Sometimes I need to use apostrophe, other times idon't

2002-07-17 Thread Phil Schwarzmann
When running a mysql_query, sometimes i need to have apostrophes surrounding variables...other times i don't example... $query = SELECT * FROM table WHERE id='$id'; or $query = SELECT * FROM table WHERE id=$id; ...it kinda seems random when it wants apostrophes and when it doesn't want

Re: [PHP] Queries - Sometimes I need to use apostrophe, other times idon't

2002-07-17 Thread 1LT John W. Holmes
need to use apostrophe, other times idon't When running a mysql_query, sometimes i need to have apostrophes surrounding variables...other times i don't example... $query = SELECT * FROM table WHERE id='$id'; or $query = SELECT * FROM table WHERE id=$id; ...it kinda seems random when