Ask a Question related to Coldfusion Database Access, Design and Development.
-
stupidstanly #1
*newbie* connecting to sql
I want to connect to my db, not sure how. In php I used:
$user_connection = mysql_connect($host, $user_id, $password)
or die ("Couldn't connect to server.");
$db = mysql_select_db('tablename', $user_connection)
or die ("Could not connect to db.");
where
$host="sqlserver"; /*on a network, NOT localhost*/
$user_id="myid";
$password="mypassword";
how do I do this in CF? thank you!
stupidstanly Guest
-
A newbie with a newbie question
Good afternoon everyone, My Name is Dusty I am new to this forum and pretty new to Acrobat. I have Acrobat 9 running on an IMAC running 10.5.2 I... -
connecting...
we're having a hard time connecting to the server so we can let others make changes to the pages. we know we can connect to the server through our... -
connecting FMS
Im really new to FMS and have installed it but im slightly confused as to what i enter into the Server address section when loging in! or where i... -
ASP.NET connecting to SQL DB
I'm having trouble connecting to an SQL database in Dreamweaver. I've typed in the correct parameters, but I get an "Http Error Code 403 Forbidden"... -
Connecting G5 to a TV
I am thinking of ordering a G5 but have only the money to buy the machine plus software. I want to replace my 3 year old imac. Since I have an... -
forumnotifier #2
*newbie* connecting to sql
I want to connect to my db, not sure how. In php I used:
$user_connection = mysql_connect($host, $user_id, $password)
or die ("Couldn't connect to server.");
$db = mysql_select_db('tablename', $user_connection)
or die ("Could not connect to db.");
where
$host="sqlserver"; /*on a network, NOT localhost*/
$user_id="myid";
$password="mypassword";
how do I do this in CF? thank you!
forumnotifier Guest
-
mxstu #3
Re: *newbie* connecting to sql
Typically you would create a datasource in the CF Administrator. The
datasource settings vary based on database and connection type. Once you
create the datasource, it can then be used in cfqueries.
<cfquery name="getData" datasource="myNewDatasource">
SELECT something FROM someTable
</cfquery>
mxstu Guest
-
dphillipsCFX #4
Re: *newbie* connecting to sql
Check out [url]http://tutorial2.easycfm.com/[/url]
Dan Phillips
CFXHosting.com
dphillipsCFX Guest



Reply With Quote

