Bel & win script V2

Gestart doorAllard10 reacties19 weergaven

11 berichten · pagina 1 van 1

Allard

Lid · Topicstarter

Berichten
970
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo,

Ik heb het Bel & win script V2 gedownload via budget-scripts.nl.
Nu heb ik het geinstaleert maar ik krijg steeds:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user timefork@localhost (using password: YES) in /home/domeinsave/domains/domeinopslag.nl/public_html/win_een_lcd_tv/index.php on line 3

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user apache@localhost (using password: NO) in /home/domeinsave/domains/domeinopslag.nl/public_html/win_een_lcd_tv/index.php on line 4

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/domeinsave/domains/domeinopslag.nl/public_html/win_een_lcd_tv/index.php on line 4


En ik ben absoluut niet goed in MySQL, dus.. Kan iemand me helpen?
De index.php:

[COLOR= #0000BB]<?PHP[/COLOR]
[URL="http://www.php.net/Ob_Start"]Ob_Start[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/Mysql_Connect"]Mysql_Connect[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"localhost"[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700],[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/Mysql_Select_Db"]Mysql_Select_Db[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>JouwBelenWinsite.nl - Hier jouw slogan!</title>
<link href="style.css" rel="stylesheet" type="text/css" />    
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->

</head>
<body>
    
    <div id="top">

        <div class="logo"></div>

    </div>
    
    <!-- Content -->

    

    <div id="container">
        
        <h3>Welkom op JouwBelenWinsite.nl!</h3>

        <p>Wil jij kans maken op die o zo vette Apple iPhone? Dan is dit jouw unieke kans! Op JouwBelenWinsite.nl kun je makelijk en snel kans maken op die gave Apple iPhone!</p>

[COLOR= #0000BB]<?PHP[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"class.ivr.php"[/COLOR][COLOR= #007700]);[/COLOR]

[COLOR= #0000BB]$rtlo[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]32478[/COLOR][COLOR= #007700];[/COLOR]      [COLOR= #FF8000]// Replace with your TargetPay layoutcode[/COLOR]
[COLOR= #0000BB]$country[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]31[/COLOR][COLOR= #007700];[/COLOR]        [COLOR= #FF8000]// Replace with country code of the end-consumer[/COLOR]
[COLOR= #0000BB]$payline[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"0909-0400170"[/COLOR][COLOR= #007700];[/COLOR]    [COLOR= #FF8000]// Payline, see: www.targetpay.nl/advanced/ivr-pincode/lijn[/COLOR]
[COLOR= #0000BB]$winaar[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]100[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Hoeveelste beller wint.[/COLOR]

[COLOR= #0000BB]$myIVR[/COLOR] [COLOR= #007700]= new[/COLOR] IVR [COLOR= #007700]([/COLOR][COLOR= #0000BB]$rtlo[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$country[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/If"]If[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]]){[/COLOR]

    [URL="http://www.php.net/If"]If[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]])){[/COLOR]
        [URL="http://www.php.net/Echo"]Echo[/URL] [COLOR= #DD0000]"<h3>Er is een fout opgetreden</h3>
              <p>U heeft geen (geldig) emailadres ingevoerd, dit is noodzakelijk voor wanneer u wint.</p>"[/COLOR][COLOR= #007700];
    }[/COLOR][URL="http://www.php.net/ElseIf"]ElseIf[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]])){[/COLOR]
        [URL="http://www.php.net/Echo"]Echo[/URL] [COLOR= #DD0000]"<h3>Er is een fout opgetreden</h3>
              <p>U heeft geen pincode ingevoerd, dit is noodzakelijk. Bel naar het 0900 nummer en vul uw pincode in.</p>"[/COLOR][COLOR= #007700];
    }[/COLOR][URL="http://www.php.net/Else"]Else[/URL][COLOR= #007700]{[/COLOR]
    
        [COLOR= #0000BB]$result[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$myIVR[/COLOR][COLOR= #007700]->[/COLOR]CheckPincode [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"code"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$payline[/COLOR][COLOR= #007700]);[/COLOR]
        [URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](![/COLOR][COLOR= #0000BB]$result[/COLOR][COLOR= #007700]) {[/COLOR]

        [URL="http://www.php.net/Echo"]Echo[/URL] [COLOR= #DD0000]"<h3>Er is een fout opgetreden</h3>"[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<p>De pincode is onjuist of al eerder ingewisseld.</p>"[/COLOR][COLOR= #007700];

        }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]

            [URL="http://www.php.net/If"]If[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]choice[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"een"[/COLOR][COLOR= #007700]){[/COLOR]
                [URL="http://www.php.net/Echo"]Echo[/URL] [COLOR= #DD0000]"<h3>U heeft de vraag fout beantwoord</h3>
                <p>Helaas, u heeft de vraag niet goed beantwoord.</p>"[/COLOR][COLOR= #007700];
            }[/COLOR][URL="http://www.php.net/Else"]Else[/URL][COLOR= #007700]{[/COLOR]
                [COLOR= #FF8000]// Betaling Geaccepteerd[/COLOR]
                
                [COLOR= #0000BB]$sSQL[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"SELECT * FROM `bellers`"[/COLOR][COLOR= #007700];[/COLOR]
                [COLOR= #0000BB]$sQuery[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/Mysql_Query"]Mysql_Query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sSQL[/COLOR][COLOR= #007700]);[/COLOR]
                [COLOR= #0000BB]$sAantal[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/Mysql_Num_Rows"]Mysql_Num_Rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$sQuery[/COLOR][COLOR= #007700]);[/COLOR]

                [URL="http://www.php.net/If"]If[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$sAantal[/COLOR][COLOR= #007700]+[/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]) ==[/COLOR] [COLOR= #0000BB]$winaar[/COLOR][COLOR= #007700]){[/COLOR]
                    [COLOR= #FF8000]// Gewonnen[/COLOR]
                    [URL="http://www.php.net/Echo"]Echo[/URL] [COLOR= #DD0000]"<h3>U heeft gewonnen!</h3>
                    <p>U heeft de prijs gewonnen, wij nemen zsm contact met u op via uw ingevoerde emailadres.</p>"[/COLOR][COLOR= #007700];[/COLOR]

                    [URL="http://www.php.net/Mysql_Query"]Mysql_Query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO `winnaars` (id,code,email) VALUES (,"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);[/COLOR]
                    [URL="http://www.php.net/Mysql_Query"]Mysql_Query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"DELETE FROM `bellers`"[/COLOR][COLOR= #007700]);
                }[/COLOR][URL="http://www.php.net/Else"]Else[/URL][COLOR= #007700]{[/COLOR]
                    [COLOR= #FF8000]// Verloren[/COLOR]
                    [URL="http://www.php.net/Echo"]Echo[/URL] [COLOR= #DD0000]"<h3>U heeft helaas niet gewonnen</h3>
                    <p>Helaas heeft u niets gewonnen, probeert u het gerust nog eens.</p>"[/COLOR][COLOR= #007700];[/COLOR]

                    [URL="http://www.php.net/Mysql_Query"]Mysql_Query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO `bellers` (id,code,email) VALUES (,"[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]code[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]","[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]")"[/COLOR][COLOR= #007700]);
                }
            }

        }

    }

}[/COLOR][URL="http://www.php.net/Else"]Else[/URL][COLOR= #007700]{[/COLOR]

?>

<p>Volg de onderstaande instructies en zie gelijk of je gewonnen hebt!</p>

        <h3>Hoe maak ik kans op die Apple iPhone?</h3>

        <p>Beantwoord de onderstaande vraag, bel naar [COLOR= #0000BB]<?[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$payline[/COLOR][COLOR= #007700];[/COLOR] ?> (&euro; 1,30p.g.) en vul je 6 cijferige pincode in. Je hoort direct of je gewonnen hebt!</p>

        <h3>De vraag: kun je de Apple iPhone ook als iPod gebruiken?</h3>

            <form method="POST" action="">
                
                <ul>
                    <li><input type="radio" name="choice" class="ratio" value="een" /> Ja, dat kan!</li>
                    <li><input type="radio" name="choice" class="ratio" value="twee" /> Nee, dat kan niet!</li>
                    <li><span>Pincode:</span>    <input type="text" class="pincode" name="code" maxlength="6"/></li>
                    <li><span>Emailadres:</span>    <input type="text" class="email" name="email" /></li>
                    <li><span>&nbsp;</span>        <input type="submit" class="button" name="submit" value=" Win die 150 euro! " /></li>
                </ul>

            </form>

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

[COLOR= #007700]}[/COLOR]

?>

    </div>
    
    <br class="clear" />

    <!-- Footer -->

    <p class="footer">&copy; Copyright JouwbelenWinsite.nl (2008-2009)</a></p>

</body>
</html>
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/Ob_End_Flush"]Ob_End_Flush[/URL][COLOR= #007700]();[/COLOR]
?>


Groeten,
Allard
0
Berichten
3.540
Reputatie
0
Punten
0,01
Lid sinds
Laatst gezien
Je zal je SQL gegevens moeten ingeven waar

Mysql_Connect("localhost","","");
Mysql_Select_Db("");

staat
0
Allard

Lid · Topicstarter

Berichten
970
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dat is het juist. Wat zijn mijn gegevens en moet in nog een database aanmaken? En hoe koppen ik het aan mijn gegevens? + Beloning
0
Berichten
15.303
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Misschien kun je dan beter eerst beginnen met een html website?
Voor MySQL heb je een database nodig ja, die maak je bij het kopje MySQL beheer in directadmin (als je een host van One2xs hebt). Dan voer je de SQL die bij het script zit uit in die database en vul je je gegevens in het script in.
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Heb je een host op one2xs?
0
Allard

Lid · Topicstarter

Berichten
970
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ja, ik host op one2xs.com
0
Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Verander timefork_belenwin2 in timefork
0
Berichten
3.788
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nee, de fout zit in de connectie zelf al!
Aangezien dat de eerste error is, dus verkeerde gegevens ingevuld
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Ik heb je wachtwoord uit je startpost gehaald.
0
Berichten
3.052
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Maak eerst een Database aan in Direct Admin. (Mysql management)

Ga dan naar Phpmyadmin en voer de SQL uit, nadat je links in het menu de database hebt geselecteerd.

Ga nu naar je bestand index.php en vul je gegevens (database, username en pass in)
van je Database (wat je dus hebt aangemaakt bij Mysql management)

Quote:
Mysql_Connect("localhost","","");
Mysql_Select_Db("");
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
volgensmij stond dat timefork al in het script zelf?
aanpassen naar je eigen gegevens
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