hehehe...
ug basin pod ang imong localhost kay naka set sa 192.168.1.140
[if naa raka sa imo comp]
jong, i think localhost lang gamita...
*Correct way:*
$connect = mysql_connect("*localhost*","mysql_user","mysql_passwd") or die
(mysql_error());
*Wrong way:*
$connect = mysql_connect("*192.168.1.140*","mysql_user","mysql_passwd") or
die (mysql_error());
*High way:*
$connect =
mysql_connect("*http://forum.scanlovers.com*","mysql_user","mysql_passwd")
or die (mysql_error());
===================
On 3/15/07, Ridvan Lakas ng Bayan S. Baluyos <[EMAIL PROTECTED]> wrote:
On 3/15/07, Jarlo Nicholas Solde <[EMAIL PROTECTED]> wrote:
>
>
> Walay may nahitano bai error: *Warning*: mysql_connect()
[function.mysql-connect
> <http://localhost/html/login/function.mysql-connect>]: Can't connect to
> MySQL server on ' 192.168.1.140' (10060) in *C:\Program
> Files\xampp\htdocs\html\login\conn.php* on line *2*
> Could not Connect to the server
>
>
wala gyuy mahitabo ana kay there's an error in your connection in the
first place. check first if you have entered the correct parameters for the
mysql_connect() function.
ang error naa sa conn.php nimu nga file. wala sa code na imu gi post sa
taas. or basin pud ang filename nga naa sa taas kay conn.php na siya? nag
libog ko. or basin sakto pud si camilo, wala ka nag butang sa necessary
mysql connection na functions para maka connect sa database. but it's
advisable to put it in a separate file and then just include it in the pages
that requires mysql connection. para once ra ang pag edit if mag change ka
ug username and password. :-)
--
はくさま
Ridvan Lakas ng Bayan Superioridad Baluyos
BS Computer Science major in Information Technology
Xavier University(Ateneo de Cagayan)
v3sw3hw4ln6pr6OPck5ma8u6Lw5Xm5l6Cui5Ce6/8t4b6
Oen5g6RTPa20s4MSr5p5... hackerkey.com
Registered Linux User #439466
http://ridvan.baluyos.net
"Theory and Practice: same in theory but different in practice."
_________________________________________________
Kagay-Anon Linux Users' Group (KLUG) Mailing List
[email protected] (http://cdo.linux.org.ph)
Searchable Archives: http://archives.free.net.ph
--
Camilo Lozano III
BS Information Management
Mobile #: 0916-3338326
Telephone #:
Iligan City: (063) 221-1122
Cagayan de Oro City: (088) 350-7211
http://www.metacatalyst.org
http://camilord.metacatalyst.org
http://www.zabyer.org
http://klug.metacatalyst.org/
http://forum.xu.edu.ph
http://forum.xu.edu.ph/linux/index.php (my linux knowledge)
-------
Got my Own Hacker Key:
v3sw3BHhw5ln2pr5OFPck3ma2u4MLw5XVm+5l5UCi5Ne4t3b5en5g5RaIs5MSr3p2
http://www.hackerkey.com
Registered Linux User: #439468
_________________________________________________
Kagay-Anon Linux Users' Group (KLUG) Mailing List
[email protected] (http://cdo.linux.org.ph)
Searchable Archives: http://archives.free.net.ph