Code looks fine, but it throws up an error:
"Parse error: syntax error, unexpected T_STRING in /home/u924861036/public_html/press.php on line 7"
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$type = $_POST['type'];
$data = $_POST['data'];
mysql_connect(“localhost”, “user_name”, “pass”) or
die(“Could not connect: ” . mysql_error());
mysql_select_db(“db_name”);
The second last line is line 7, but even if i delete it, the error is same, so there is some error in line 8 also.