<?php
$con = mysql_connect("localhost","root","")or die (mysql_error());
$db = mysql_select_db("mybbeklenti",$con)or die(mysql_error());
$ad = mysql_real_escape_string($_POST["ad"]);
$email = mysql_real_escape_string($_POST["email"]);
$mesaj = $_POST["mesaj"];
$kiriklink = $_POST["kiriklink"];
if($ad==""){header("location:index.php?kls=1");}else
{if($email==""){header("location:index.php?kls=2")}else
{if($mesaj==""){header("location:index.php?kls=3")}else
{if($kiriklink==""){header("location:index.php?kls=4")}else
{mysql_query("INSERT INTO bildirim (`ad`,`email`,`acklama`,`kiriklink`,`tarih`) VALUES ('$ad','$email','$mesaj','$kiriklink',now())");header("location:index.php?kls=5");}}}}
?>
( ! ) 解析错误:语法错误,第 11 行 C:\wamp\www\mybbeklents\rapor\gonder.php 中的意外 '}'
- 行是 {if($email=="" 行请帮忙!