Page 1 of 1

inputting php code in my sql

Posted: Thu Jun 11, 2009 10:58 am
by smilesmita
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.

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 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!

Re: inputting php code in my sql

Posted: Thu Jun 11, 2009 11:36 am
by mikemike
Perhaps you should do some PHP + MySQL tutorials to begin with.
Googled