Can't get current date into MySQL

admin

Administrator
Staff member
Hi

I don't really want to ask this but...
Trying to get current date into a table.

Using all sorts of variations of...

$sql = "insert into assign values ( '$zone', ( CURRENT_DATE() )', '$sector', '$zone_desc')";

The column is set to DATE in the table.

I can't find a clear example for this anywhere.

Thanks!

Richard
 
Back
Top