Jump to content

Problem connecting to mysql


slj90

Recommended Posts

<?php
$username="a7564065_si";
$password="*****";
$database="a7564065_food";

mysql_connect(mysql4.000webhost.com,$username,$password);
...

 

I am trying to connect to mysql but having trouble.

The host name: mysql4.000webhost.com

 

I get the error:

 

Parse error: syntax error, unexpected T_DNUMBER in /home/a7564065/public_html/Index.html on line 17

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/218679-problem-connecting-to-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.