Jump to content
MakeWebGames

Recommended Posts

Posted

mines obviously broken can someone fix or give me the correct script for it>?

 

<?php

    $c = mysql_connect('localhost', 'xx', 'xxxxxxxx');

    mysql_select_db('lite2', $c);

    $mykey=xxxxxxxxxx;

    ?>

Posted

Re: need a new mysql.php

first of all, don't post your connection details like that, you're giving naughty people to key to your door... it's not so good.

secondly, another code won't work, it's something you have to figure out. The only thing I can say is, check your values and key! It most likely doesn't work because you took a random game, used the installer but didn't change that $mykey. I'm only guessing here though

PS: please use the appropriate category to post, as this is mcc

Posted

Re: need a new mysql.php

You want the correct script? Okay

 

<?php 
$c = mysql_connect('localhost', 'username', 'password');
mysql_select_db('database', $c);
$mykey = 'som random key here';
?>

 

Notice it's the same basically? Because your filling you details out wrong! :wink:

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...