Re: strings in HTML - <BR> != \n AND grafical statistics

From: Date: Thu, 17 Apr 2003 11:11:17 +0000
Subject: Re: strings in HTML - <BR> != \n AND grafical statistics
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144268@lists.php.net to get a copy of this message
Ben -- ..and then Ben9000 said... % % -----BEGIN PGP SIGNED MESSAGE----- % Hash: SHA1 % % Hello list! Hi! % % I have two questions where I need a slightly hint which way to go. % % 1: % - - I have an html input form. with a comment field (textfield) % - - I write the comment string into the mysql db % - - I grab the comment string and print in a <textarea> but its one % whole line then! :( I think you'll need to check out using addslashes() to protect any included \n chars in your input or they'll be stripped when they go into the db. Check the value that you put in versus the value that you get out. You might also play with the wordwrap() function, sizing your output to match your text box. % % 2: % What are the best ways(functions) to create grafical statistics out of % Table values? What sort of graphs do you want to see? I saw some posts go by about JP Graph or JD Graph; check the list archives. Of course, you could also roll your own with gnuplot. I don't think that PHP has anything built in (unless J?Graph is an add-on). % % I highly appreciate any feedback! % % enjoy your day You, too :-) % % Ben :) HTH & HAND :-D -- David T-G * There is too much animal courage in (play) davidtg@justpickone.org * society and not sufficient moral courage. (work) davidtgwork@justpickone.org -- Mary Baker Eddy, "Science and Health" http://justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!

« previous php.general (#144268) next »