inputting php code in my sql

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
smilesmita
Forum Commoner
Posts: 30
Joined: Thu May 24, 2007 1:52 pm

inputting php code in my sql

Post 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!
Last edited by Benjamin on Thu Jun 11, 2009 7:10 pm, edited 1 time in total.
Reason: Added [code=php] tags.
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: inputting php code in my sql

Post by mikemike »

Perhaps you should do some PHP + MySQL tutorials to begin with.
Googled
Post Reply