Jump to content

php newsletter


dezkit

Recommended Posts

hey guys, im new to mysql/php and im wondering how why when i look at my database(or table, whatever it is called), it shows only the first 2 letters of my ip

 

<?php

$email = $_POST['email'];
$ip = $_POST['ip'];


mysql_connect("mysql", "dezkit", "xxxxxx") or die(mysql_error());
mysql_select_db("newsletter") or die(mysql_error());

mysql_query("INSERT INTO users 
(email, ip) VALUES('$email', '$ip' ) ") 
or die(mysql_error());  

echo "Thank you for registering for our newsletter!";

?>

Link to comment
https://forums.phpfreaks.com/topic/98647-php-newsletter/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.