skip to Main Content

MYSQL: make 1 query from 2

How I can merge this 2 querys to 1? $query1 = mysqli_query($_connect, 'SELECT `id` FROM `callers` ORDER BY `id` DESC LIMIT 1') or die(); $result1 = mysqli_fetch_object($query1); $query2 = mysqli_query($_connect, 'SELECT SUM(`calls`) AS "total" FROM `callers`') or die(); $result2 =…

VIEW QUESTION
Back To Top
Search