/src/page_2.php
PHP | 73 lines | 68 code | 5 blank | 0 comment | 3 complexity | a5fc4b3e7afd1018a0cacbd267c254c7 MD5 | raw file
- <?php
- $conn = mysql_connect('91.184.10.91', 'mysqlgratisgolf', 'g0lfp0l1s');
- mysql_select_db('gratisgolfpolis', $conn);
-
- $result = mysql_query("SELECT * FROM akties WHERE name LIKE ('".$_POST["id"]."') AND entrycode LIKE ('".$_POST["entry"]."')");
-
- if(mysql_num_rows($result) == 0) {
- header("Location: index.php");
- exit;
- } else {
- $row = mysql_fetch_array($result);
- $shop = $row["aanbieder"];
-
- $result = mysql_query("SELECT * FROM aanbieders WHERE id ='".$shop."'");
- $row = mysql_fetch_array($result);
- ?>
- <!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>GRATIS-GOLFPOLIS.nl</title>
- <link href="golfpolis_styling.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td colspan="3"><img src="images/logo_golfpolis.jpg" alt="Logo gratis-golfpolis.nl" width="780" height="110" /><br />
- <br /></td>
- </tr>
- <tr>
- <td width="130"> </td>
- <td width="520" class="Frame">
- <?= $row["intro"] ?>
- <form action="page_3.php" method="post">
- <input type="hidden" name="id" value="<?=$_POST["id"]?>"/>
- <input type="hidden" name="entry" value="<?=$_POST["entry"]?>"/>
- <div align="center"><input type="image" src="images/but_gratisverzekering.png" alt="GRATIS Verzekering, klik hier!" width="300" height="47" border="0" /></div>
- </form>
- <br />
- <br />
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="150" align="center" valign="top"><span class="HoleInOne">HOLE-IN-ONE<br />
- =<br />
- GRATIS WINKELEN</span><br />
- <form action="page_6.php" method="post">
- <input type="hidden" name="id" value="<?=$_POST["id"]?>"/>
- <input type="hidden" name="entry" value="<?=$_POST["entry"]?>"/>
- <input type="hidden" name="prev" value="page_2.php" />
- <input type="image" src="images/voor_info.png" alt="Klik hier voor info" width="142" height="66" border="0" /></a> </td>
- </form>
- <td align="right"><img src="images/logo_intergolf.png" alt="InterGolf Assurantieën" width="174" height="117" /></td>
- </tr>
- </table>
- <br />
- <br />
- </td>
- <td width="130"> </td>
- </tr>
- <tr>
- <td colspan="3" align="center"><a href="contact.php" style="color:#000000;">contact</a> | <a href="privacy.php" style="color:#000000;">privacybeleid</a> | <a href="disclaimer.php" style="color:#000000;">disclaimer</a></td>
- </tr>
- <tr>
- <td colspan="3" class="Footer">© 01-2013: INTER-GOLF ASSURANTIEN</td>
- </tr>
- </table>
- </body>
- </html>
- <?php
- }
- ?>