php - $sel = $mysqli->query("SELECT max(number) AS max_number, id FROM table ") -


i have table following

id - number - value 1  - 1000   - 20 2  - 2000   - 30 3  - 3000   - 35 

while tried

$sel = $mysqli->query("select max(number) max_number, id table "); $sel_row = $sel->fetch_object(); $id = $sel_row->id; 

i $id = 1, looking $id = 3;


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -