Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #Connection a la base
- $CON = mysql_connect("hote_mysql","nom_user","passe_user");
- if (!$CON)
- {
- die('Could not connect: ' . mysql_error());
- }
- #Definition des variables
- $IP=$_SERVER['REMOTE_ADDR'];
- $DATE=date("y/m/d");
- #On renseigne la base
- mysql_query("INSERT INTO nom_base.nom_table (colonne_date, colonne_ip) VALUES ('$DATE', '$IP')");
- #Un message a la con
- echo "YA DUN GOOFD $IP";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement