2Pacalypse
07-17-2008, 10:20 PM
I downloaded a script for a game...
This is my connect.php file.
<?php
session_start();
ob_start();
$connect = mysql_connect("*localhost","","");
if($connect == TRUE) {
if(mysql_select_db("") != TRUE) {
exit("<span style='color: red'>Can't connect to the MySQL database. Please contact the webmaster.</body></html>");
}
}else{
exit("<span style='color: red'>Can't connect to the MySQL server. Please contact the webmaster.</body></html>");
}
?>
I'm using a free host called 110mb for a while to test it out and make sure it runs smooth.
PHP Ver: 5.1.6
MySQL Ver: 5.0.27
Any help is appreciated!
Try to keep it simple! I am complete noob to this coding!
This is my connect.php file.
<?php
session_start();
ob_start();
$connect = mysql_connect("*localhost","","");
if($connect == TRUE) {
if(mysql_select_db("") != TRUE) {
exit("<span style='color: red'>Can't connect to the MySQL database. Please contact the webmaster.</body></html>");
}
}else{
exit("<span style='color: red'>Can't connect to the MySQL server. Please contact the webmaster.</body></html>");
}
?>
I'm using a free host called 110mb for a while to test it out and make sure it runs smooth.
PHP Ver: 5.1.6
MySQL Ver: 5.0.27
Any help is appreciated!
Try to keep it simple! I am complete noob to this coding!