Help --- Php Errors

Welcome. Please Login, Register, Or Activate! 
type your username and password to login
Date: November 26, 2009, 01:01 AM
432748 members and 299673 Topics
Latest Member: Alharedom
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Webmasters (Moderators: OmniPotens, yawa-ti-de)  |  Help --- Php Errors
Pages: (1) Go Down Send this topic Notify of replies
Author Topic: Help --- Php Errors  (Read 62 views)
virtualn (m)
Help --- Php Errors
« on: September 24, 2009, 04:48 PM »


Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ekohall_seyiphp'@'localhost' (using password: YES) in /home/public_html/web/lib/db_var.php on line 6

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/public_html/web/lib/db_var.php on line 7

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/public_html/web/lib/db_var.php on line 7

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/public_html/web/lib/db_var.php:6) in /home/ekohall/public_html/web/usdv.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/public_html/web/lib/db_var.php:6) in /home/public_html/web/usdv.php on line 3
yawa-ti-de (f)
Re: Help --- Php Errors
« #1 on: September 24, 2009, 05:05 PM »

Quote
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ekohall_seyiphp'@'localhost' (using password: YES) in /home/public_html/web/lib/db_var.php on line 6

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'nobody'@'localhost' (using password: NO) in /home/public_html/web/lib/db_var.php on line 7

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/public_html/web/lib/db_var.php on line 7

Check that you are using the right database names and that you actually have your username and password correct.  For instance, though I may call my db name and table name A and B respectively, my host for some reason tacks on a host-A and hosttable-B.  In other words, go to the database portion of your cpanel to see what the names actually are and/or contact them for the info and/or visit their FAQ pages

Quote
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/public_html/web/lib/db_var.php:6) in /home/ekohall/public_html/web/usdv.php on line 3

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/public_html/web/lib/db_var.php:6) in /home/public_html/web/usdv.php on line 3

this is most likely because you are calling your sessions and cookies after you have sent info in your HEAD portion of your page.  In other words, chances aer that your code looks like this:

Quote
<html>
<head>
<title>
</title>
</head>
<body>
<?php session or cookie info?>
</body>
</html>

As opposed to this (note positioning of the session/cookie var):
Quote
<?php session or cookie info?>
<html>
<head>
<title>
</title>
</head>
<body>

</body>
</html>

In other words, always call your session/cookie vars before outputting any HTML

Good luck!
virtualn (m)
Re: Help --- Php Errors
« #2 on: September 24, 2009, 05:10 PM »

Thank you,
I have resolved it. I was used to using "localhost" as my host but the server am working on required me to specify an Ip address for mysql server. Thanks alot.
biggjoe (m)
Re: Help --- Php Errors
« #3 on: September 24, 2009, 05:22 PM »

Quote from: virtualn on September 24, 2009, 05:10 PM
Thank you,
 I have resolved it. I was used to using "localhost" as my host but the server am working on required me to specify an Ip address for mysql server. Thanks alot.

Good one virtualn, this has not happened here in a long time.
I mean a poster coming back to acknowledge that his/her problem has been solved.

How about the last error? (
I mean this one:
Quote
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/public_html/web/lib/db_var.php:6) in /home/ekohall/public_html/web/usdv.php on line 3
yawa-ti-de (f)
Re: Help --- Php Errors
« #4 on: September 24, 2009, 05:23 PM »

yeah biggjoe:
Though your comments aren't exactly true (reference the latest one here: http://www.nairaland.com/nigeria/topic-326207.0.html), it does remind me of the story of the 10 lepers in the bibleĀ  Cool
biggjoe (m)
Re: Help --- Php Errors
« #5 on: September 24, 2009, 05:50 PM »

ok, my bad.
 Complete Web Designing Course For Just Few Dollars  Polls On Nairaland  Try The Worlds Strongest Energy Shot For $2.99!  Page 2
Pages: (1) Go Up Send Topic to Friend by E-mail Reply 


Sections: Autos/Cars (2) Jobs/Vacancies (2) (3) Career Talk Education General(2) Politics Romance Computers Phones Travel
Sports Fashion Health Religion Celebrities TV/Movies (2) Music/Radio (2) Books Webmasters Programming

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa. See also: Nairalist Classified Ads
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.