Ok im helping jealousy, im basically inserting the ip into a database then selecting WHERE their ip=the ip in the database.
Code:
$ip = @$REMOTE_ADDR;
$message = ($result)?"$file_name uploaded successfully." :
"Somthing is wrong with uploading a file.";
mysql_connect("***", "***", "***") or die(mysql_error());
mysql_select_db("***") or die(mysql_error());
mysql_query("INSERT INTO jealousy
(URL, IP) VALUES('http://socomladders.co.uk/$file_name', '$ip') ")
or die(mysql_error());
Its just not inserting the ip, ive tried making the ip variable a simple word like 'hello' and it inserts it just fine. Its not retreiving the ip for some bizare reason.
It would be easier to do a username and password type thing. Want me to do that?
Bookmarks