%PDF- %PDF-
Direktori : /home/alliance/domains/sedl.alnetis.fr/public_html/test/ |
Current File : /home/alliance/domains/sedl.alnetis.fr/public_html/test/a-ordre-bloc.php |
<?php include_once("inc/config.php"); include_once("inc/functions.php"); include_once("inc/session.php"); include_once("inc/init.php"); verif_get($_POST['page']); $db = new BaseOps; $page_sec = $section->page_sec($_POST['page']); verif_co_sec($page_sec); $action = $_POST['action']; $updateRecordsArray = $_POST['recordsArray']; $page = $_POST['page']; if ($action == "updateRecordsListings"){ $listingCounter = 1; foreach ($updateRecordsArray as $recordIDValue) { $query = "UPDATE `bloc` SET ordre = " . $listingCounter . " WHERE id = " . $recordIDValue; mysql_query($query) or die('Error, insert query failed'); echo $query."<br/>"; $listingCounter = $listingCounter + 1; } echo '<pre>'; print_r($updateRecordsArray); echo '</pre>'; } ?>