When you want to read a single value from a MySQL table following code will help you.
Your need to fetch row using query function with following syntax
[connection_object]->query(sql statement)
After fetched rows use mysqli_fetch_assoc function for access row by row records
Var_name= mysqli_fetch_assoc([connection_object]->query(SQL Statement))
mysqli_fetch_assoc returns one dimensional array so use can use table column name as index
mysqli_fetch_assoc returns one dimensional array so use can use table column name as index