php - How to query and select * where a value is a INT? -


this sql far , nothing working.

$st = db::getinstance()->query("select * users group = 1 order joined asc"); 

all want select * table users group = 1 (order by...) problem group column int. cannn't retrieve data it. if try group = '1'

is there function/way through issue? thanks!

group reserved word in many sql implementation. try using users.group = 1 .


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -