So...Let's Take It From The Start 1 by 1.
First Of All... Port 80 Is For The Website, That's Why You Can't Use It For The Scripts.
2nd at
$cfg['Servers'][$i]['host'] = '127.0.0.1'; -> Here You Add The IP That The Database Is On
$cfg['Servers'][$i]['connect_type'] = '3306'; -> Here You Add The Port That Database Is Listening
$cfg['Servers'][$i]['user'] = 'xxx'; -> Here You Add Your Database Username
$cfg['Servers'][$i]['password'] = 'xxx'; -> And Here You Add Your Database Password
So If You Want Your Site To Access Your Database, You Will Need To Open Port 3306 [iF YOUR SITE IS NOT AT THE SAME SERVER PC,OTHER WISE YOU DON'T NEED TO OPEN THE PORT.]
If You Need More Help [something That I Am Sure] Let Me Know.
PS: If You Wanna Start The Coding You Should Go And Learn Php :D :P
[move]*dns-A[/move]