Page 1 of 1

adding date in html forum to mysql db

Posted: Wed Mar 30, 2011 11:00 pm
by trgprasad
Hallo Team,

I am newbie to PHP...

i am trying to add date in html forum to MYSQLdb

I have one html file fom file

form action="insert.php" method="post"><center>
<b>starts from : </center><td width="100"><input type="text" name="prgramm"id="D_ON"size ="50" value="yyyy-mm-dd" />

<b>ends on : </center><td width="100"><input type="text" name="completion"id="D_ON"size ="50" value="yyyy-mm-dd" />
......
when i try to submit all the other feilds are able to add into my sql but....
$sql="INSERT INTO test (starts from, ends on)
VALUES
('$_POST[starts from]','$_POST[ends on]')";

date which is not getting included.

any suggestions

Thanks in advance for the support

trgprasad