I'm not sure I understand exactly what you said but I've been playing around with this when I saw your reply. Am I on the right lines?
<?php
mysql_connect("localhost", "mhbillin_madb", "<REMOVED>");
mysql_select_db("mhbillin_madb");
$sql = "SELECT * FROM liscdata";
$res = mysql_query($sql);
$data = "INSERT INTO liscdata SET id='1', domain='remove.com', ip='123.123.123.123'\n";
while($row = mysql_fetch_array($res) {
$data .= "INSERT INTO liscdata SET id='$row['\id'\]', domain='$row[\'domain\']', ip='$row[\'ip\']'\n";
}
function insert($sql) {
mysql_query($sql);
mysql_query("DELETE FROM liscdata WHERE id='1' AND domain='remove.com' AND ip='123.123.123.123'");
mysql_query("DELETE FROM liscdata WHERE id='1' LIMIT 1");
}
mysql_close();
mysql_connect("69.57.152.42", "mhbillin_liscdb", "<REMOVED>");
mysql_select_db("mhbilin_liscdb");
insert($data);
mysql_close();
?>
Thanks 🙂