$nieuweklant = "INSERT INTO klanten (voornaam,achternaam,tussenvoegsel,email,telefoonnummer,woonplaats,nieuwsbrief)
VALUES ('$voornaam','$achternaam','$tussenvoegsel','$email','$telefoonnummer','$woonplaats','$nieuwsbrief')";
mysql_query($nieuweklant) or die(mysql_error());
当上面的查询成功时,我想链接到一个页面
最佳答案
试试这个
<?php
$result = mysql_query('SELECT * WHERE 1=1');
if (!$result) {
die('Invalid query: ' . mysql_error());
}
else
header('Location: http://www.example.com/');
?>
关于php - 查询成功时链接到页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13745137/