Newbie to PHP - Running into error with linking to my_sql

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
ozziamo
Forum Newbie
Posts: 1
Joined: Thu Mar 16, 2006 9:12 am

Newbie to PHP - Running into error with linking to my_sql

Post 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.
User avatar
kendall
Forum Regular
Posts: 852
Joined: Tue Jul 30, 2002 10:21 am
Location: Trinidad, West Indies
Contact:

Post 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
Post Reply