Yes, you can store HTML, Javascript, and Flash code in MySQL (since they are
processed by the client web browser).

And yes, you can store PHP code in MySQL, but since this has to be processed
on the server side you need to use the eval() function to execute it once it
is retrieved from the database.

Example eval() usage:

echo("\n\n   <p> " . eval( "?> ". $row["text"] ) . " </p>\n\n");






----- Original Message -----
From: "Machiste' N. Quintana" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 08, 2003 9:28 PM
Subject: Can MySQL 4.0.14 store HTML? Among other things....


Hey. I'm New (as you probably can tell), and I was wondering if MySQL 4.0.14
can store HTML, PHP, JavaScript and/or Flash. Can it? I'm assuming it would
be stored as a string, and if outputted by PHP, would it output as HTML? (Or
JavaScript, PHP, or Flash)

Thanks!

--Machiste' N. Quintana

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 01/08/2003



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to