Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

An extremely noobish question (Answered)

Discussion in 'Scripting' started by adamus888, Jul 6, 2010.

  1. adamus888

    adamus888

    Joined:
    Sep 21, 2009
    Posts:
    29
    Hi there!
    I'm extremely new to MySQL and php but I desperately need a database which would store highscores.
    I found this tutloial http://www.unifycommunity.com/wiki/index.php?title=Server_Side_Highscores.

    So, here comes the question:
    Should I leave the quotation marks when I change
    Code (csharp):
    1.  
    2. $db = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') or die('Could not connect: ' . mysql_error());
    3.         mysql_select_db('my_database') or die('Could not select database');
    ??
    Thanks in advance :wink:
     
  2. Chris-Sinclair

    Chris-Sinclair

    Joined:
    Jun 14, 2010
    Posts:
    1,326
    You need to keep the apostrophes in there, they indicate text/string information.
     
  3. adamus888

    adamus888

    Joined:
    Sep 21, 2009
    Posts:
    29
    thanks a lot ! :p