[MYSQL] help aub.

Gestart doorJef7 reacties6 weergaven

8 berichten · pagina 1 van 1

Jef

Lid · Topicstarter

Berichten
2.682
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hey,
Ik heb de volgende code bij me mysql.
Maar ik krijg nog steeds error.

Code is :

[COLOR= #0000BB]<?php[/COLOR]

[COLOR= #FF8000]/*=======================================================================

| UberCMS - Advanced Website and Content Management System for uberEmu

| #######################################################################

| Copyright (c) 2010, Roy Meth0d and updates by Matthew MDK

| http://www.meth0d.org & http://www.sulake.biz

| #######################################################################

| This program is free software: you can redistribute it and/or modify

| it under the terms of the GNU General Public License as published by

| the Free Software Foundation, either version 3 of the License, or

| (at your option) any later version.

| #######################################################################

| This program is distributed in the hope that it will be useful,

| but WITHOUT ANY WARRANTY; without even the implied warranty of

| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

| GNU General Public License for more details.

======================================================================*/[/COLOR]



[URL="http://www.php.net/class"]class[/URL] MySQL

[COLOR= #007700]{[/COLOR]

    [URL="http://www.php.net/private"]private[/URL] [COLOR= #0000BB]$connected[/COLOR] [COLOR= #007700]=[/COLOR] false[COLOR= #007700];[/COLOR]

    [URL="http://www.php.net/private"]private[/URL] [COLOR= #0000BB]$hostname[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700];[/COLOR]

    [URL="http://www.php.net/private"]private[/URL] [COLOR= #0000BB]$username[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"root"[/COLOR][COLOR= #007700];[/COLOR]

    [URL="http://www.php.net/private"]private[/URL] [COLOR= #0000BB]$password[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"pass"[/COLOR][COLOR= #007700];[/COLOR]

    [URL="http://www.php.net/private"]private[/URL] [COLOR= #0000BB]$database[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"uberdb"[/COLOR][COLOR= #007700];[/COLOR]

    [URL="http://www.php.net/private"]private[/URL] [COLOR= #0000BB]$link[/COLOR][COLOR= #007700];[/COLOR]

    

    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] MySQL[COLOR= #007700]([/COLOR][COLOR= #0000BB]$host[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$user[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$pass[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$db[/COLOR][COLOR= #007700])

    {[/COLOR]

        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]connected [COLOR= #007700]=[/COLOR] false[COLOR= #007700];[/COLOR]    

        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]hostname [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$host[/COLOR][COLOR= #007700];[/COLOR]

        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]username [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$user[/COLOR][COLOR= #007700];[/COLOR]

        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]password [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$pass[/COLOR][COLOR= #007700];[/COLOR]

        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]database [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$db[/COLOR][COLOR= #007700];

    }[/COLOR]

    

    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] IsConnected[COLOR= #007700]()

    {[/COLOR]

        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]connected[COLOR= #007700])

        {[/COLOR]

            [URL="http://www.php.net/return"]return[/URL] true[COLOR= #007700];

        }[/COLOR]

        

        [URL="http://www.php.net/return"]return[/URL] false[COLOR= #007700];

    }[/COLOR]



    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] Connect[COLOR= #007700]()

    {[/COLOR]

        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR][URL="http://www.php.net/link"]link[/URL] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]http[COLOR= #007700]:[/COLOR][COLOR= #FF8000]//jeffrey.dutchycontrols.nl/, $this->jeffrey_uberdb, $this->pass) or $this->error(mysql_error());[/COLOR]

        [URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]jeffrey_uberdb[COLOR= #007700],[/COLOR] [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR][URL="http://www.php.net/link"]link[/URL][COLOR= #007700])[/COLOR] or [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]error[COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]

         

        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]connected [COLOR= #007700]=[/COLOR] true[COLOR= #007700];

    }[/COLOR]

    

    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] Disconnect[COLOR= #007700]()

    {[/COLOR]

        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]connected[COLOR= #007700])

        {

            @[/COLOR][URL="http://www.php.net/mysql_close"]mysql_close[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR][URL="http://www.php.net/link"]link[/URL][COLOR= #007700])[/COLOR] or [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]error[COLOR= #007700]([/COLOR][COLOR= #DD0000]"could not close conn"[/COLOR][COLOR= #007700]);[/COLOR]

            [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]connected [COLOR= #007700]=[/COLOR] false[COLOR= #007700];

        }

    }[/COLOR]

    

    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] DoQuery[COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700])

    {[/COLOR]

        [COLOR= #0000BB]$resultset[/COLOR] [COLOR= #007700]= @[/COLOR][URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$query[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR][URL="http://www.php.net/link"]link[/URL][COLOR= #007700])[/COLOR] or [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]error[COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]

        [URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$resultset[/COLOR][COLOR= #007700];

    }[/COLOR]

    

    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] Evaluate[COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultset[/COLOR][COLOR= #007700])

    {[/COLOR]

        [URL="http://www.php.net/return"]return[/URL] [COLOR= #007700]@[/COLOR][URL="http://www.php.net/mysql_result"]mysql_result[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$resultset[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]);

    }[/COLOR]

    

    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] Error[COLOR= #007700]([/COLOR][COLOR= #0000BB]$errorString[/COLOR][COLOR= #007700])

    {[/COLOR]

        [URL="http://www.php.net/global"]global[/URL] [COLOR= #0000BB]$core[/COLOR][COLOR= #007700];[/COLOR]

        

        [COLOR= #0000BB]$core[/COLOR][COLOR= #007700]->[/COLOR]systemError[COLOR= #007700]([/COLOR][COLOR= #DD0000]Database Error[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$errorString[/COLOR][COLOR= #007700]);

    }[/COLOR]

    

    [URL="http://www.php.net/public"]public[/URL] [COLOR= #007700]function[/COLOR] __destruct[COLOR= #007700]()

    {[/COLOR]

        [COLOR= #0000BB]$this[/COLOR][COLOR= #007700]->[/COLOR]disconnect[COLOR= #007700]();

    }

}[/COLOR]



?>


Mysql database enzo is = Jeffrey_uberdb ( naam en database ) en me pw is pass.

Kan iemand me helpen.
En ohja, me host is http://jeffrey.dutchycontrols.nl/

De error : Parse error: syntax error, unexpected : in /home/jeffrey/domains/jeffrey.dutchycontrols.nl/public_html/inc/class.db.mysql.php on line 97
0
Berichten
1.649
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
zet dit is neer op lijn 79

$this->link = mysql_connect($this->jeffrey.dutchycontrols.nl/, $this->jeffrey_uberdb, $this->pass) or $this->error(mysql_error());
0
Jef

Lid · Topicstarter

Berichten
2.682
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Parse error: syntax error, unexpected , in /home/jeffrey/domains/jeffrey.dutchycontrols.nl/public_html/inc/class.db.mysql.php on line 79

Krijg ik dan?

Btw, het word een fansite geen retro.
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Weet je uberhaupt wat een class is? emo
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jef schreef:
Parse error: syntax error, unexpected , in /home/jeffrey/domains/jeffrey.dutchycontrols.nl/public_html/inc/class.db.mysql.php on line 79
Krijg ik dan?

Btw, het word een fansite geen retro.

Je zegt zelf dat het geen retro is. Waarom staat er dan Uber CMS? emo
0
Jef

Lid · Topicstarter

Berichten
2.682
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nickjexx schreef:
Eerdere citaten tonen
Jef schreef:
Parse error: syntax error, unexpected , in /home/jeffrey/domains/jeffrey.dutchycontrols.nl/public_html/inc/class.db.mysql.php on line 79
Krijg ik dan?

Btw, het word een fansite geen retro.

Je zegt zelf dat het geen retro is. Waarom staat er dan Uber CMS? emo
Omdat ik de client verwijder smile
@ Luuk, nee xd
0
Berichten
2.692
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Jah uhm..
Verander:

$this->link = mysql_connect($this->http://jeffrey.dutchycontrols.nl/, $this->jeffrey_uberdb, $this->pass) or $this->error(mysql_error());


naar:

$this->link = mysql_connect($this->host, $this->db, $this->pass) or $this->error(mysql_error());


Wow.. Ik zie net dat overal $this->jougegevens hebt.. emo!!

Verander dat alles naar hoe ik het heb gedaan.. alleen bij host dan db ofzo.. emo
0
Jef

Lid · Topicstarter

Berichten
2.682
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Is al gelukt yummie
Thnx voor je hulp iedereen.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren