|
The only reason to use CF is because it is a lot faster if you've never programmed in one of these languages before. All of the commands are just a lot simpler to use. That doesn't mean they are any less powerful; they are just as powerful as anything in PHP, its just much more proprietary. CF now has a lot of its commands available in CFSCRIPT form, so much of the old way of doing CF is going by the wayside where everything was tag based.Still, most of CF is tag based. A query to a database would look like this:select * from tblImageswhereas in PHP it'd be a database connect command followed by some mysql function calls:$datasource = mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");@mysql_select_db("$DBName") or die("Unable to select database $DBName");$sqlquery ="select * from tblImages";$XXX_result=mysql_query($sqlquery);$XXX_num_results=mysql_num_rows($XXX_result);Much more convoluted, but not necessarily any different than the CF method.
__________________
Powered by Yahoo! Answers
|