Hi Ray
I'm hoping that those records without a sortorder value will be updated to the RepImgID value (this is the primary key).
An update query would look something like
update pageimages set sortorder = repimgid where sortorder is null and PgID=$_GET['PgID'] - I can do this direct in the database, but don't know how to do it on the page, if the extension doesn't work as I thought.
Cheers
Chris