| |
|
 |
Database Connection by: bs0d |
|
Comments:
| Stodgrgg |
| Subject: "Purpose of red text"
Date: Mar 01 2007 at 12:27 pm
|
|
|
|
|
In the code, what is the purpose of using red text? What does it indicate?
|
| jcpatella |
| Subject: "red text"
Date: Apr 19 2007 at 5:49 pm
|
|
|
|
|
I'm no pro, but I'm pretty sure his php editor highlights syntax.
|
| duece |
| Subject: "colors"
Date: Jun 12 2007 at 12:23 am
|
|
|
|
|
Actually I believe that the red code signifies information that is dependent on your system configuration and naming structure as it is set up on your localhost or otherwise.
|
| jkkenzie |
| Subject: "Website.com"
Date: Oct 28 2007 at 2:48 pm
|
|
|
|
|
The server is a website? I thought it would have been something like //servername/MySqldatabaseName/ or what does .com mean ?? Am new in PHP anyway?
|
| bs0d |
| Subject: "Your Website"
Date: Oct 30 2007 at 11:48 am
|
|
|

|
Put in your domain name.
|
| dvbernard |
| Subject: "dbserver"
Date: Feb 26 2008 at 7:54 am
|
|
|
|
|
To begin with, kudos, bs0d! I've read a couple of your articles, some of them several times, and have found them insightful. However, to the last question that was asked, about what dbserver (website.com) entails, it was not my domain name, as you had suggested. Rather, it was the server name of my host. (In my case, sql1.bravehost.com). I literally spent about three hours trying different variants of the domain name (with and without "www" etc.) before I consulted my host's help forum section and discovered that I had to use the server name. Those of you who want to retain your sanity (I was on the verge of losing it!) should check your host's specific requirements -- since I assume it's different from host to host. Peace all.
|
| moonshadow |
| Subject: "CAN IT BE DONE LIKE THIS? IS IT POS..."
Date: Feb 29 2008 at 12:30 pm
|
|
|
|
|
<?php
$dbserver="website.com";
$dbuser="user";
$dbname="database_1";
$dbpass="password";
$table ="table1";
$connect = mysql_connect('$dbserver','$dbuser','$dbpass');
$select= mysql_select_db('$dbname');
?>
|
|
|
 |
Code Stats |
| 17,635 |
Views |
| 7 |
Total Comments |
| 0 |
Rating of 5 (1 Votes) |
|