Hi I'm having problems entering data into a database. The code doesn't show up any errors, but some of the data isn't entered.
<?php*
$myemail="$_COOKIE['email']";
$mypassword="$_COOKIE['password']";
$cname=$_POST['name'];
$cnumber=$_POST['number'];
$con = mysql_connect("localhost","user","pass");
mysql_select_db("database", $con);
$sql="INSERT INTO tablename (email, password, cname, cnumber)
VALUES ('$myemail','$mypassword','$cname','$cnumber') ";
The $cname and $cnumber variables are fine, but the cookies aren't being entered. And the cookies are fine, they have data in them. The funny thing is that this code works on another page, but doesn't work here.
Thanks in advance,
Niall