multiple update
Hi Ray
I continue to have problems updating from mysql to mysqli multiple updates. I have reinstalled DA to ensure it's the current version, but no difference.
The repeat region displays the records properly, but I get the following error after pressing the update button.
Fatal error: Uncaught Error: Call to undefined function mysql_select_db() in /home/sites/sweens.uk/public_html/admin/modals/modal-mainpages-sort.php:65 Stack trace: #0 {main} thrown in /home/sites/sweens.uk/public_html/admin/modals/modal-mainpages-sort.php on line 65
Page attached.
When applying the multiple update, the following line was added, which I think is wrong, as it relates to the field being updated, not to the id of the record
<input type="hidden" name="sOrder_wamultihidden_<?php echo $RepeatSelectionCounter_1; ?>" id="sOrder_wamultihidden_<?php echo $RepeatSelectionCounter_1; ?>" value="1" />
The correct value should be, I think,
<input type="hidden" name="WADA_RepeatID_pg_id_<?php echo $RepeatSelectionCounter_1; ?>" id="WADA_RepeatID_pg_id_<?php echo $RepeatSelectionCounter_1; ?>" value="<?php echo($rsPages->getColumnVal("pg_id")); ?>" />
(I've tried it with both values, and neither work).
I'm using PHP v 7.2, if that's relevant
Many thanks
Chris