%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/alliance/domains/congress-intercultural.eu/public_html/sauv/
Upload File :
Create Path :
Current File : /home/alliance/domains/congress-intercultural.eu/public_html/sauv/a-ordre-bloc.php

<?php

include_once("inc/config.php");
include_once("inc/functions.php");
include_once("inc/init.php");
include_once("inc/session.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>';
}
?>

Zerion Mini Shell 1.0