₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,060 members, 8,420,091 topics. Date: Thursday, 04 June 2026 at 11:12 AM

Toggle theme

Help --- Php Errors - Webmasters - Nairaland

Nairaland ForumScience/TechnologyWebmastersHelp --- Php Errors (780 Views)

1 Reply (Go Down)

Help --- Php Errors by virtualn(op): 4:48pm On Sep 24, 2009
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
Re: Help --- Php Errors by yawatide(f): 5:05pm On Sep 24, 2009
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

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:

<html>
<head>
<title>
</title>
</head>
<body>
<?php session or cookie info?>
</body>
</html>
As opposed to this (note positioning of the session/cookie var):
<?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!
Re: Help --- Php Errors by virtualn(op): 5:10pm On Sep 24, 2009
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.
Re: Help --- Php Errors by biggjoe(m): 5:22pm On Sep 24, 2009
virtualn:
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:
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
Re: Help --- Php Errors by yawatide(f): 5:23pm On Sep 24, 2009
yeah biggjoe:
Though your comments aren't exactly true (reference the latest one here: https://www.nairaland.com/nigeria/topic-326207.0.html), it does remind me of the story of the 10 lepers in the bible  cool
Re: Help --- Php Errors by biggjoe(m): 5:50pm On Sep 24, 2009
ok, my bad.
1 Reply

Errors With Exporting Artisteer As Joomla TemplatesLet Me Fix Your Website Errors With This Software For FREE!Good Wordpress Theme And Editable Footer W/o Errors234

Can Anyone Help Me To Put Google Ad On My Site1 Million Email For Your AdvertAny Nigerian Web Sites Having An Api