$result = $db_con->query(\"SELECT SQL_CALC_FOUND_ROWS * FROM users LIMIT 0,10\");
$count_result = $db_con->query(\"SELECT FOUND_ROWS() as totalcount\");
$row
I'm not sure what database library you're using but it looks like you are trying to count the number of rows in a select statement in php from a mysql database.
Have you tried seeing if it works with the built in mysql database functions in php?
$count_result = mysql_query("SELECT COUNT(*) as totalcount FROM users");
$row = mysql_fetch_array($count_result);
$total = $row['totalcount'];