What would be the equivalent of the code below in coldfusion. I’m able to connect to database with php but having trouble with properly setting cfquery tag
mysql_connect("your.hostaddress.com", "username", "password") or die(mysql_error());
mysql_select_db("Database_Name") or die(mysql_error());
$data = mysql_query("SELECT * FROM friends")
or die(mysql_error());
You’ll have to setup the database information as a datasource in the ColdFusion Administrator.