I have a db table in mysql called gsm, with 2 columns, LAC and NAME.
So I am trying to count how many different LAC are stored in the DB and retrieve a php value to further use. I am using mysqli
I have:
$sql = "select count(distinct lac) from gsm ");
How do I store that query into a variable in php?