Jump to content

[SOLVED] mysql date insert


acctman

Recommended Posts

i have a mysql field that is format for DATE 0000-00-00 i was using the code below to added the date but it's not inserting

error: Fatal error: Call to undefined function: curdate()

mysql_query("INSERT INTO rate_referrals (ref_by,ref_mem,ref_set,ref_status,ref_date) 
		VALUES ({$row['m_id']},'$id','$points',0,'".CURDATE()."')");

Link to comment
https://forums.phpfreaks.com/topic/160044-solved-mysql-date-insert/
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.