Nieuw lid |
|
Deze error krijg : Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Siebe\Admin\AntwoordMail.php on line 11
wat doe ik verkeerd?
<?php
include("Connect.php");
$Bericht = $_POST['Bericht'];
$Onderwerp = "TaatuPlace contact";
$Email = "contact@taatuplace.com";
if (isset($_GET[id])) {
$SQL = "SELECT FROM Contact WHERE id = '$_GET[id]'";
$Query = mysql_query($SQL);
while($Rij = mysql_fetch_array($Query)) {
$Mail = $Rij['Mail'];
}
if(isset($_POST['Verzenden'])) {
if(empty($_POST['Bericht'])) {
echo "Geen bericht ingevuld!";
} else {
mail($Mail, $Onderwerp, $Bericht, $Email);
echo "Je bericht is verzonden!";
}
} else {
?>
<table border="0">
<form method="POST">
<tr>
<td><strong>Bericht:</strong></td>
<td><textarea type="text" name="Bericht"></textarea></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="Verzenden" value="Verzenden!" /></td>
</tr>
</form>
</table>
<?php
}
}
else {
echo "Antwoorden mislukt!";
}
?>
<?php include("Connect.php"); $Bericht = $_POST['Bericht']; $Onderwerp = "TaatuPlace contact"; $Email = "contact@taatuplace.com"; $SQL = "SELECT FROM Contact WHERE id = '$_GET[id]'"; $Mail = $Rij['Mail']; } if(isset($_POST['Verzenden'])) { if(empty($_POST['Bericht'])) { echo "Geen bericht ingevuld!"; } else { mail($Mail, $Onderwerp, $Bericht, $Email); echo "Je bericht is verzonden!"; } } else { ?> <table border="0"> <form method="POST"> <tr> <td><strong>Bericht:</strong></td> <td><textarea type="text" name="Bericht"></textarea></td> </tr> <tr> <td></td> <td><input type="submit" name="Verzenden" value="Verzenden!" /></td> </tr> </form> </table> <?php } } else { echo "Antwoorden mislukt!"; } ?>
|