PHP interesse |
|
ik heb deze code gemaakt, via phpmyadmin werkt hij wel, maar via me website niet :S? ken iemand me helpen?
<?
<form name="form1" method="post" action="">
<table width="394" height="188" border="0">
<tr>
<td width="131">Navigation Label </td>
<td width="207"><input name="navlabel" type="text" id="navlabel"></td>
</tr>
<tr>
<td>Navigation Link </td>
<td width="207"><input name="navlink" type="text" id="navlink"></td>
</tr>
</table>
<p>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
<p> </p>
</div></td>
<td width="233"> </td>
</tr>
<tr>
<td height="222"> </td>
<td> </td>
<td> </td>
</tr>
</table>
?>
######hierom gaat het##############
<?php
include ('../includes/config.inc.php');
if($_POST['navlabel']){
$query ='INSERT INTO menu_nav (navigation) VALUES ('blaat')';
$resultaat = mysql_query($query);
echo "dit is goed";
}
?>
<? <form name="form1" method="post" action=""> <table width="394" height="188" border="0"> <tr> <td width="131">Navigation Label </td> <td width="207"><input name="navlabel" type="text" id="navlabel"></td> </tr> <tr> <td >Navigation Link </td > <td width="207"><input name="navlink" type="text" id="navlink"></td> </tr> </table> <p> <input type="submit" name="Submit" value="Submit"> </p> </form> <p> </p> </div></td> <td width="233"> </td> </tr> <tr> <td height="222"> </td> <td> </td> <td> </td> </tr> </table> ?> ######hierom gaat het############## <?php include ('../includes/config.inc.php'); if($_POST['navlabel']){ $query ='INSERT INTO menu_nav (navigation) VALUES ('blaat')'; } ?>
wat nu het probleem is, hij plaatst niets in de database
|