Sorry about the late reply, since I couldn't get it to work I didn't feel the need to save the code, but this is basically what I used last
<?php
$username="imakeang_angry";
$password="tpark701234";
$database="imakeang_records";
mysql_connect(localhost,$username,$password);
mysql_select_db($database);
$ip = $_SERVER['REMOTE_ADDR'];
$query="SELECT * FROM ip WHERE address='$ip'" or die(mysql_error());
$result=mysql_query($query) or die("mysql_error() 1");
$ip_rec_address=mysql_result($result,$i,"address");
$ip_rec_sent=mysql_result($result,$i,"sent");
if ( $ip_rec_address == $ip ) {
if ( $ip_rec_sent == 2 ) {
echo "You have sent too many messages today, wait until tomorrow to send another.";
}
else {
$query = "INSERT INTO global_sent VALUES ('$result + 1')";
mysql_query($query);
echo "$result messages sent.";
}
}
mysql_close();
?>
This returns "Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 5" on line 27 and 18.
The Little Guy - I'll try that out right now.