kohjhjhصثقصثقصثقgdfgdg
Ele57885fddfgdfgfghgقفغفغفقhfg555434536
/
home
/
u402332945
/
domains
/
simmar.co.in
/
public_html
/
Admin-Panel
/
Upload FileeE
HOME
<?php $conn = new mysqli('localhost','lulusmart1234_2022','lulusmart1234_2022','lulusmart1234_2022'); if ($conn->connect_error) { die('Error : ('. $conn->connect_errno .') '. $conn->connect_error); } $array = $_POST['arrayorder']; if ($_POST['update'] == "update"){ $count = 1; foreach ($array as $idval) { //$sql = "UPDATE p15 SET listorder = " . $count . " WHERE id = " . $idval; $insert=$conn->query("UPDATE p15 SET listorder = " . $count . " WHERE id = " . $idval." "); $count ++; } if ($insert) { echo "Record updated successfully"; } else { echo "Error updating record: " . $conn->error; } } ?>