Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to insert date in mysql using php

$sample1 = "insert into table (id,date) value(1,'".date("Y-m-d H:i:s")."')";

$sample2 = "insert into user (name,date,created_by) value('perasuah negara', now(), 1)"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #insert #date #mysql #php
ADD COMMENT
Topic
Name
8+2 =