I'm trying to pull HTML code into a form textarea however I actually want the code to be displayed and not the formatting.
i.e. <font color="#FF0000;">Hello World</font> needs to be displayed as <font color="#FF0000;">Hello World</font> and not red text that says Hello World.
Thanks in Advance
MattNeeley - This is the code I was after initially. The PHP version of its ColdFusion equivalent.
Both kenrbnsn and MattNeeley solutions achieve my desired results.
I've cut my execution time down from 1min 25sec to 4secs....
Amazing what a little bit of efficient code practice can do...
Just before I do leave however...
Is there a way with kenrbnsn's second piece of code that I can say:
SELECT * FROM $country_array[] WHERE State = $_Get['State']
or
SELECT * FROM $rs WHERE State = $_Get['State']
As you can with the ColdFusion <cfquery dbtype="queryName">?
Is there a way with PHP to query a result set rather than query the database, similar to the <cfquery dbtype="queryName"> tag in ColdFusion?
I have a database with around 10,000 records, each record having a country, state, city field etc.
The user selects the country from a drop down list...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.