If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
MySQL connect bug in Adv Guestbook  XML
Forum Index » Support Forum
Author Message
retailunion
Beginner
[Avatar]

Joined: 25/01/2002 11:51:56
Messages: 6
Location: Manchester, UK
Offline

if you're having trouble connecting to the DB
after you created the DBtables try this:

Open the mysql.class.php in the lib folder,
go to line 30 find this: $this->conn_id=

now right after the =

replace this:
mysql_connect($this->db['host'].":".$this->port,$this->db['user'],$this->db['pass']);

with this:
mysql_connect ("localhost", "yourusername", "yourpassword") or die ('I cannot connect to the database.');




Worked first time and having wasted an hour
messing about with config files and the rest it's runnin like a dream
Best Regards
Many thanks to the author
for offering such a great script for FREE
Julie
http://www.retailunion.com
[WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



cheers - very helpful -- being new to php that took me an hour to figure out but you saved me a bit of time - well a lot actually!
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum