Hi All,
I'm working on a database wherein I want to input the current date into existing table upon
the user enter his pin. I'm having a hard time to make it work here is my code.
<?php
$result="SELECT * FROM profiletable WHERE (firstName='$_POST[assetSearch]' || lastName='$_POST[assetSearch]' || IDNumber='$_POST[assetSearch]')";
$q = mysql_query($result,$con);
if($row = mysql_fetch_array($q))
{
$d=date("Y/m/d");
$sql="INSERT INTO profiletable(IDNumber(date))
VALUES('$_POST[$d]')";
echo "you are login";
}
mysql_close($con);
?>
any help about this?thank you