I'm having trouble getting information that is in the mysql database I created and displaying it on my site. This site was one I did as a project for a web design class I took last semester, and everything worked just fine. But when I copied over all the files to x10 and made the changes in the php (username, password, database, and server for mysql_connect() and mysql_select_db() ) it wouldn't grab the info. The php I'm using to connect is:
<?php
mysql_connect("localhost", "nhsadmin_admin", "*********") or die('There was a problem connecting to the mysql server. Error returned: '. mysql_error());
mysql_select_db("NHS") or die('Could not select database');
?>
I'm not getting any error messages about not being able to connect to the database, and when you go to the acual page (https://huntingdonnhs.x10hosting.com:2078/public_html/membersMeetings.html) on the site it looks as if there's something wrong with the php and html that creates the table the info is put into. I haven't made any changes to that part of the page, so it should be ok since it worked perfectly fine on my college's web server and database, which has left me puzzled. I'm kinda new to this site, so I tried attaching the .html file for the page to this but am not sure if it worked or not. Unfortunately, I don't have a lot of time to work on it now since I'm in a new semester, so any help would be greatly appreciated. Thanks.
<?php
mysql_connect("localhost", "nhsadmin_admin", "*********") or die('There was a problem connecting to the mysql server. Error returned: '. mysql_error());
mysql_select_db("NHS") or die('Could not select database');
?>
I'm not getting any error messages about not being able to connect to the database, and when you go to the acual page (https://huntingdonnhs.x10hosting.com:2078/public_html/membersMeetings.html) on the site it looks as if there's something wrong with the php and html that creates the table the info is put into. I haven't made any changes to that part of the page, so it should be ok since it worked perfectly fine on my college's web server and database, which has left me puzzled. I'm kinda new to this site, so I tried attaching the .html file for the page to this but am not sure if it worked or not. Unfortunately, I don't have a lot of time to work on it now since I'm in a new semester, so any help would be greatly appreciated. Thanks.