KDawg08 Posted January 16, 2010 Share Posted January 16, 2010 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. Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted January 18, 2010 Share Posted January 18, 2010 </tr> <?php }// while loop ?> <tr> should be one would assume... </tr> <?php printf('}');// while loop ?> <tr> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.