I have a kind of complex (which I don't think should be that complex) code snippet occuring several of times on my homepage. What I want to do is to shorten it down, I just don't know how.Here it is:
$sql2 = "UPDATE boats SET click = $click, latest_ip = '$latest_ip', isp = '$isp' WHERE id = '$id'";
@mysql_query($sql2);
Sincerely,
Undrium
edit: Figured I don't need a large part of it so I removed it. Is there anymore way to shorten it down?