The time now is 09/07/08 - 10:15
Log in: Username: Password:
Search forums for:
  

PHP and MySQL problem

Post new topic   Reply to topic
Author Message
kireol
RealPoor Master of Posts
RealPoor Master of Posts


Joined: 02 Aug 2003
Posts: 9517
Location: Royal Oak, MI



PostPosted: 08/23/03 - 17:18    Post subject: PHP and MySQL problem Reply with quote

I just installed PHP and mysql. it cant seem to connect, even with a simple program. what am i doing wrong?


Code:

<?php
/* Connecting, selecting database */
printf("<HTML>\n<BODY>\ntesting<BR>");
$link = mysql_connect("localhost", "mylogin", "mypassw") or die("Could not connect : " . mysql_error());
print "Connected successfully";
printf("</BODY>\n</HTML>");

?>
Back to top
kireol
RealPoor Master of Posts
RealPoor Master of Posts


Joined: 02 Aug 2003
Posts: 9517
Location: Royal Oak, MI



PostPosted: 08/23/03 - 21:44    Post subject: Reply with quote

nm, fixxed it on my own
Back to top
Display posts from previous:   
Post new topic   Reply to topic
Page 1 of 1

Related topics:
WarCraft 3 Battle.net Problems
Everquest 2 Echoes of Faydwer installing problem
Problem with Samba/CUPS network printer...
Problem
XPS Gen2 hooked up to moniter problem
Warhammer Online Loading Screens Problem?
Everquest2 Payment problems
Installing new hard drive problems
pc problem. would appreciate any help i can get.
*nix problem
LOTR Online Problem while loading up the game?
EverQuest 2 Account key problem
Car problem
Trade deficit: A growing problem? MY RANT + article
Connection problems
EDIT-found the problem, nevermind.
FP download problem...
Lacrosssse problem fooness
Runescape member problems.
Vanguard Shaman with a problem