inputting php code in my sql
Posted: Thu Jun 11, 2009 10:58 am
this is the code that goes inside my mysql table[thru drupal cms] .this code gets pulled whenever a certain page is called and the php script gets executed.
this is an sample code in the mysql table field.
I have to make a admin section where the user selects the date and the title.
i am not understanding as to how i can take the input from user and stick it in my php code and then submit the whole code to mysql field in a table.
Please help!
this is an sample code in the mysql table field.
Code: Select all
<?php if($today < 81508[this is the date]){ ?>
<p>
<b>RE-GRAND OPENING & NATIONAL HIGH SCHOOL OPEN HOUSE![this is the title]</b><br>
Thursday<br>
August 14th, 2008[month date year]<br>
</p>
<?php } ?>
i am not understanding as to how i can take the input from user and stick it in my php code and then submit the whole code to mysql field in a table.
Please help!