Hallo,
Ik heb het Bel & win script V2 gedownload via budget-scripts.nl.
Nu heb ik het geinstaleert maar ik krijg steeds:
En ik ben absoluut niet goed in MySQL, dus.. Kan iemand me helpen?
De index.php:
Groeten,
Allard
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] ?> (€ 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> </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">© 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