I have this mysql query:
insert into table_products values (NULL, '$product_name', '$product_description', '$image_path', '$brand_id', 1)
Since product_id is an auto_increment primary key, passing NULL will assign it the next available integer.
It is the same integer I want to assign to an image path with some pre and post string string.
For example, if the product_id is assigned as 900, I want to assign image_path to 'somestring/' + 900 + '.png' i.e something/900.png
How to get this 900 for the image path column while inserting in to table.