Jump to content
Welcome, Guest
Existing user? Sign In

Sign In



Sign Up
The MatriX
  • Welcome To Ghbsys
  • CS GO Streaming Version is released. Have fun streaming while cheating!
  • Have a Payment Issue? Send us a Support ticket.
  • Make a thread if you need support or join our discord for live support.
  • Have Suggestions? Make a thread and you'll earn Ghbsys Points for implemented suggestions.
  • Join our discord to stay well connected! Don't forget to integrate your discord to the site
  • Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum

    Welcome to [GHB] - GAmEhAcKbAsTaRdS Forum, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information for you to signup. Be apart of [GHB] - GAmEhAcKbAsTaRdS Forum by signing in or creating an account.
    • Start new topics and reply to others
    • Subscribe to topics and forums to get email updates
    • Get your own profile page and make new friends
    • Send personal messages to other members.

    PHP Problem


    ~Beefy~
     Share

    Recommended Posts

    Hallööschen,

    ich hab n kack problem in PHP.

    Hier mal die meldung:

     

    Parse error: syntax error, unexpected T_VARIABLE, expecting T_FUNCTION in F:\Andere Benutzer\Felix\Eigene Dateien\Virtual Apache Server\xampp\htdocs\Projekt Codingshare\mysql.class.php on line 7

     

    So jetzt hier die datei "mysql.class.php".

     

    <?php
    
    /* Copyright 2010 - Codingshare.de Ripped Games Ltd. */
    
    class MySqlC {
    
    	$connection = mysql_connect("localhost", "root", "") or die("#".mysql_errno()." - MySql Driver Error:".mysql_error());
    
    	public function GetTableData($sqlstring) {
    		$query = mysql_query($sqlstring, $connection);
    		return $query;
    	}
    	public function GetTableNum($tablename) {
    		$sqlstring = "SELECT * FROM `".$tablename."`";
    		$query = mysql_query($sqlstring, $connection);
    		return mysql_num_rows($query);
    	}
    }
    
    /* Copyright 2010 - Codingshare.de Ripped Games Ltd. */
    
    ?>

     

     

    //Edit:

    Problem gelöst, hab über ne Function "SetConnection" mysql_connect festgelegt. O.o

    Edited by Beefy'X
    Link to comment
    Share on other sites

    Guest
    This topic is now closed to further replies.
     Share

    • Recently Browsing   0 members

      • No registered users viewing this page.
    ×
    ×
    • Create New...