I'm gathering some info from a website to put it in a MySQLdatabase. At this moment I just cannot find out how to get the date and time in the database.
I tried several things, can you help?
$write="REPLACE INTO `".$database."`.`db` (`1`,`2`,`3`,`4`,`5`,`6`,`7`,`datetime`) VALUES ('".$1."','".$2."','".$3."','".$4."','".$5."','".$6."','".$7."','**SO WHAT DO I NEED TO PLACE HERE**')";
echo $write;
$query = mysql_query($write) or die (mysql_error());
In the database itself no matter what I put in my php, is 0000-00-00 00:00:00.