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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -