|
|
 |
Database Connection by: bs0d |
|
Comments:
Stodgrgg |
Subject: "Purpose of red
text"
Date: Mar 01 2007 at 7:27 pm
|
|
|
|
In the code,
what is the
purpose of
using red text?
What does it
indicate?
|
jcpatella |
Subject: "red text"
Date: Apr 20 2007 at 12:49 am
|
|
|
|
I'm no pro,
but I'm pretty
sure his php
editor
highlights
syntax.
|
duece |
Subject: "colors"
Date: Jun 12 2007 at 7: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 9:48 pm
|
|
|
|
The server is a
website? I
thought it
would have been
something like
//servername/My
SqldatabaseName
/ or what does
.com mean ?? Am
new in PHP
anyway?
|
bs0d |
Subject: "Your Website"
Date: Oct 30 2007 at 6:48 pm
|
|
|

|
Put in your
domain name.
|
dvbernard |
Subject: "dbserver"
Date: Feb 26 2008 at 2:54 pm
|
|
|
|
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&quo
t; 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 7:30 pm
|
|
|
|
<?php
$dbserver=&quo
t;website.com&
quot;;
$dbuser="
user";
$dbname="
database_1&quo
t;;
$dbpass="
password"
;
$table
="table1
";
$connect =
mysql_connect(
'$dbserver','
$dbuser','$db
pass');
$select=
mysql_select_db
('$dbname');<
br />
?>
|
lenuj_avalon |
Subject: "connect to a
database from
LAN Serv..."
Date: Jan 26 2009 at 11:06 am
|
|
|
|
i am a
beginner, can i
ask how to
connect to a
database from a
server..LAN. or
from your own
system..
|
Gurugeak |
Subject: "No idea, lost"
Date: Aug 01 2009 at 6:16 pm
|
|
|
|
What do you put
for the
dbserver? i
tried my
domain, my db
name, my db
user nothing
works!!!! help
please
|
|
|
 |
Code Stats |
33,572 |
Views |
9 |
Total Comments |
0 |
Rating of 5 (1 Votes) |
|