Zymic Forums

Webmaster resources

Zymic IRC Server

Chat in real time at irc.zymic.com - Learn More

Welcome

Welcome to the Zymic webmaster forums. Our forums are here to provide people the free ability to discuss a range of websites related topics such as design, development coding and marketing.

In order to post you will need to register for a zymic account or if you already have one simply login by using the form on the left.

left Zymic Webmaster ForumsZymic Free Web HostingDatabases & MySQL right
left right
The_Boss
post Apr 16 2011, 12:00 AM
Post #1


Newbie
*

Group: Members
Posts: 2
Joined: 15-April 11
Member No.: 186,656



So that's the error log :
QUOTE
Can't connect to database! Too many connections Line 114 : mysql.class.php


Normally, in morning to evening, my database works fine, and i can access to my website, but, in the night, i can't access to it (the page loads eternally) and 1 or 2 hours after, i got the error.

Yesterday, it works fine at 07:50:06 (France time), so the error continued from the night, to 7h.
Please help me, i have some visitors in the night !

Thank you. (ans sorry for my bad english)
Go to the top of the page 
 
  + Quote Post
 
Start new topic
Replies
adam007
post Jul 6 2011, 07:05 AM
Post #2


Ninja
***

Group: Members
Posts: 104
Joined: 27-June 11
Member No.: 196,019



use this code

<?php
// Connects to Our Database
mysql_connect("your.hostaddress.com", "username", "password") or die(mysql_error());
mysql_select_db("Database_Name") or die(mysql_error());
?>
Now, whenever we need to connect to our database, we just include this line in our PHP file:
//MySQL Database Connect
include 'datalogin.php';
Go to the top of the page 
 
  + Quote Post

Posts in this topic

 Reply to this topic Start new topic
left right
0 Members:
left right
 


Lo-Fi Version Time is now: 23rd May 2013 - 12:22 PM