DavidP Posted June 15, 2013 Share Posted June 15, 2013 With mysql we... $q = "SELECT * FROM users WHERE id='$id'"; but I noticed that with mysqli quotes aren't used... $q = "SELECT * FROM users WHERE $id=$id"; It seems this came with no fanfair or mentioning and its probably nothing, but I'd like to just clarify that quotes in this case aren't necessary. Thanks David Link to comment Share on other sites More sharing options...
HartleySan Posted June 15, 2013 Share Posted June 15, 2013 Use quotes for strings, and no quotes for everything else. 2 Link to comment Share on other sites More sharing options...
DavidP Posted June 15, 2013 Author Share Posted June 15, 2013 Got it. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts