note 64051 added to function.echo

From: Date: Thu, 06 Apr 2006 13:40:19 +0000
Subject: note 64051 added to function.echo
Groups: php.notes 
Request: Send a blank email to php-notes+get-107439@lists.php.net to get a copy of this message
Hello, just a note to tell that an echo or print won't echo a php. I have a mysql db with a text field filled with php scripts. some of these scripts also print some information. Example of script inside db: <font color=red>Today is: <? echo date('Y-m-d'); ?></font> Now I have a script that calls that cell inside the mysql and prints it. For example: <? function printme ($var) { ... you can call your db and get the values from it. ... //print output echo $mysqlresult. } ?> And the result was: Today is: The echo from the function didn't managed to handle the 'echo' inside the mysql row. I tried with print also and with the abbreviated version of echo and none worked. ---- Server IP: 66.163.161.117 Probable Submitter: 201.225.125.90 ---- X-Spam-Status: No, hits=4.2 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_30_40,HTML_FONTCOLOR_UNKNOWN,HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.echo.php Edit -- http://master.php.net/note/edit/64051 Del: integrated -- http://master.php.net/note/delete/64051/integrated Del: useless -- http://master.php.net/note/delete/64051/useless Del: bad code -- http://master.php.net/note/delete/64051/bad+code Del: spam -- http://master.php.net/note/delete/64051/spam Del: non-english -- http://master.php.net/note/delete/64051/non-english Del: in docs -- http://master.php.net/note/delete/64051/in+docs Del: other reasons-- http://master.php.net/note/delete/64051 Reject -- http://master.php.net/note/reject/64051 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#107439) next »