It should be: $ sender = $ _ GET[ ' senderr' ] ;. Remove public static. Those Keywords are for function definitions inside a class. Alternative: define a class around your function, this will take care of other class related references as well: class MyClass { / / your function here }. Tu problema esta en esta linea: $ selBD = mysql_ select_ db( $ nameBD) ;. Deberia ser: $ selBD = mysql_ select_ db( $ nameBD, $ con) ;. Por cierto, las funciones mysql han sido depreciadas. Deberias usar msqli mejor. Parse error: syntax error, unexpected T_ ECHO in C: \ wamp\ www\ game\ rankings.