i have an customers i want to add IP address to these customers i used loop $i=254 to add ip address automatically but it's give 1.1.2.254 to all the customers how can i fixing it
i need to make loop if the 1.1.2.254 is existing for customer 1 !! use the next 1.1.2.253 for customer 2
$i=254
$res = MySQL_query("INSERT INTO `rm_users`(`username`, `staticipcpe`) VALUES ('$username', '1.1.2.$i');
$i--