Heleus Posted October 16, 2019 Share Posted October 16, 2019 Hello, I am having problem in creating prepared statements for the below code example. The $s_id has auto incremental value. Will someone point me with an example on how to do this according to the code below? $s_id = $db->insert_id; $update = $db->query("UPDATE mb SET s_id = {$s_id} WHERE id = {$cs}"); Thank you. Link to comment Share on other sites More sharing options...
Heleus Posted October 19, 2019 Author Share Posted October 19, 2019 Will someone? Thakns Link to comment Share on other sites More sharing options...
Larry Posted October 22, 2019 Share Posted October 22, 2019 I'm not quite following the use case here (why you'd update a table to an auto-increment value) but, more importantly, this isn't a prepared statement? Could you provide a bit more code? Also, when you say you're having a problem, what is happening that shouldn't? Are you seeing any error messages? Link to comment Share on other sites More sharing options...
Recommended Posts