Page 1 of 1

Newbie to PHP - Running into error with linking to my_sql

Posted: Thu Mar 16, 2006 9:18 am
by ozziamo
Hey all... I am really new to PHP and MySQL and just inherited a website using this with Javascript last week. The problem that I have encountered is the following error:

mysql_query(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /c43/mens1/cgi-bin/mhn_urls.inc

mysql_query(): A link to the server could not be established in /c43/mens1/cgi-bin/mhn_urls.inc

mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /c43/mens1/cgi-bin/mhn_urls.inc

Here is a link to the site: http://www.menshealthnetwork.org/php/mhn_urls.php

Thanks for the help - I am cracking open a PHP help guide right.

Posted: Thu Mar 16, 2006 9:31 am
by kendall
ozziamo,

i think its a connection problem of you not being able to connect to the mysql server database. Check your conncetion settings and laise with your HSP