adding date in html forum to mysql db

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
trgprasad
Forum Newbie
Posts: 1
Joined: Wed Mar 30, 2011 10:47 pm

adding date in html forum to mysql db

Post 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
Post Reply