pndof12006
-
Posts
14 -
Joined
-
Last visited
Never
Posts posted by pndof12006
-
-
alright, finally... It Works... Thanks Guys...
-
doesn't do nething, still shows SAMPLE SAMPLE
-
still doesnt do nething
-
[code]$p = preg_replace("/(\r\n|\r|\n)/","\n",$poem);
echo "<tr><td align='center'><b>$pname</b></td></tr>";
echo "<tr><td> </td></tr>";
echo "<tr><td align='center'>";
echo $p;
echo "</td></tr>";
echo "<tr><td> </td></tr>";[/code] -
Daniel it didn't work.
-
when it gets inserted in the DB it is in the same format it ws in the text area. example
SAMPLE
SAMPLE
will show like that in the Text Area and in The DB, But when echoed to a page it is like this:
SAMPLE SAMPLE -
didn't work.
-
well the thing is, when it's submitted and inserted into the DB there is no characters that are /n.
-
that doesn't help me, from what it looks like u have to have a \n in order for that to work.
-
but that will not put the [code]<br>[/code]at the end of each line of a poem.
-
use this excat code
[code] <? echo date('i:s', 1159660803);?>[/code]
or if you need the hour in there use this:
[code]<? echo date('h:i:s', 1159660803);?>[\code][/code] -
i did this once. what i did was set cookies and used a lil PHP example:
[code]
<? setcookie(color,$colorcode,+3600)
<body bgcolor="<? echo #$_COOKIE[$colorcode];>">
?>[/code] -
Ok, I am starting a poetry website and when users submit a new poem they currently need to add a [code]<br>[/code] at the end of each line. is it possible to make it so when the form is submitted it automatically puts the breaks in the databse?
Getting an id number from one table and using the num....
in PHP Coding Help
Posted
Any help please?