Snatchy Posted December 17, 2006 Share Posted December 17, 2006 Just wondering where and what i have to edit to get the game code to run on my computer cause i'm gettin sik of waitin for it to upload to test it.... I just can't get the database to connect. Quote Link to comment Share on other sites More sharing options...
corruption Posted December 17, 2006 Share Posted December 17, 2006 Re: WAMP 5 :? do you mean you want to see a page befor you upload it? :| Quote Link to comment Share on other sites More sharing options...
Revolution Posted December 17, 2006 Share Posted December 17, 2006 Re: WAMP 5 Just turn on WAMP5 and point to your localhost in your browser http://localhost/[yourgamefolder]/ where [yourgamefolder] is the name of the folder in the www folder you have the php scripts Quote Link to comment Share on other sites More sharing options...
Anaconda Posted December 17, 2006 Share Posted December 17, 2006 Re: WAMP 5 your mysql.php <?php $c = mysql_connect('localhost', 'root', ''); mysql_select_db('your db name here', $c); $mykey=your my key here; ?> Quote Link to comment Share on other sites More sharing options...
Snatchy Posted December 18, 2006 Author Share Posted December 18, 2006 Re: WAMP 5 yeah i know how to get the beowser to display the page, i just can't sign in or register a player or anything. i think it's a problem with the database connection, this is what i have. <? $c=mysql_connect('localhost','root','') or die(mysql_error()); mysql_select_db('nottellingdbname',$c); ?> I'm not sure what ya mean bu $myket, never seen it before. Quote Link to comment Share on other sites More sharing options...
Jake Posted January 4, 2007 Share Posted January 4, 2007 Re: WAMP 5 Ok, Your database should have an '_' somewhere. Eg, My cPanel/Php-myadmin log in name is XXX, and my database is YYY, so...i believe it would be XXX_YYY i think :? Quote Link to comment Share on other sites More sharing options...
Revolution Posted January 4, 2007 Share Posted January 4, 2007 Re: WAMP 5 if you couldnt connect to your database you would get an error saying that... that connection file goods good to me, have you run the installer? 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.