php - MySQL query not working with nested select -
The code below does not work, I'm not a specialist with MySQL but it seems that it should work, someone Also clues? ($ Params ['action'] == 'createTab') {$ stmt = $ dbh- & gt; Ready (enter "dashboard_data (status, user_id) values (maximum select (position) + 1 dashboard_data where user_id =: userid) ,: userid);); $ Stmt- & gt; Baidam Parm (': UserId', $ User ID); $ Stmt- & gt; Executed ();
use
dashboard_data (status, user_id) ) Select maximum (status) + 1: userid from userid where user_id =: userid
Comments
Post a Comment