Forum Moderators: coopster
I use a form structure to submit the data into database.
It has a field called "content" which has textarea type of input.
When i enter few paragraphs
for example the content entered is
---content entered----
Basically you will want to run a PHP script file in specific intervals. Suppose you want to execute a php file called maintanence.php every one hour. This is what you do :-
The CRON Command is in the Following Format
CODE
[ Minute - Hour - Day - Month - Weekday ] - Command
The COMMAND, can be broken down in
---content entered----
It it stored as it is in the db. Next when i display the content I donot get the formated content. It shows just a continuous data without and formatting.
-----displayed data-----
Basically you will want to run a PHP script file in specific intervals. Suppose you want to execute a php file called maintanence.php every one hour. This is what you do :-The CRON Command is in the Following FormatCODE[ Minute - Hour - Day - Month - Weekday ] - CommandThe COMMAND, can be broken down in
-----displayed data-----
I understand that i have to replace the line gap by <p> or <br> when displaying it. But how to perform it. The complete content is accessed using row['content']
so you may use this:
/////////// remove the <br /> it could be set in a loop if needed //////////////////////$patterns[0] = '/<br \/>/' ;
$replace[0] = ' ';
$content = preg_replace($patterns, $replace, $content);
////////// end removing <br /> ///////