Jump to content
MakeWebGames

Opening in WAMP?


KDawg08

Recommended Posts

I was trying to set this up offline as well as online. Online i got everything working perfectly so far.

in WAMP i made a database and obviously user is "root"... no password...

When i login to the script i get in the news.php this error "No database selected"

then i get on the auto theft page gta.php "Parse error: parse error in C:\wamp\www\gta.php on line 100"

 

Here are lines 99-101

 

 </tr>
	<?php }// while loop ?>   	
 <tr>

 

It does this for all pages.

Any ideas why? I have my connect.php setup like this

FOR WAMP:

<?php

session_start();
ob_start();

$connect = mysql_connect("localhost","root","");
if($connect == TRUE) {
if(mysql_select_db("btnmain") != 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>");
}
?>

 

Database name on my desktop is btnmain (For those that wanna ask the easy question first to be safe) It has been created and imported the sql.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...