Hi,
Try structuring your query this way, rather than just putting it all into one statement. Just helps in my opinion with debugging, plus it's easier on the eyes
$sql = "SQL QUERY HERE"
$result = mysql_query($sql) or die(mysql_error());
The "or die" function will give you the mysql error should there be one.
So your code should look like this:
$sql = "INSERT INTO `Tabname`(`storage_ip`,`storage_time`,`storage_referrer`,`storage_ua`,`storage_port`,`storage_number`) VALUES ('$ip', '$date', '$ref' ,'$ua' ,'$port' ,'$num');";
$result = mysql_query($sql) or die(mysql_error());
Let me know if this solves it.
Dave