mysql_insert_id ON mysql_insert

3 posts by 2 authors in: Forums > CMS Builder
Last Post: October 14, 2014   (RSS)

By claire - October 14, 2014

Hi Djulia

If I recall right, mysql_insert should return the ID of the created record or false if it's not created successfully, so all you'd need to do is this:

$recordNum = mysql_insert($tableName, $colsToValues, true);

Does that help?


Claire Ryan

Save time by getting our experts to help with your project.

By Djulia - October 14, 2014

Hi Claire,

It is perfect! :)

Thank you for your reactivity!