السلام عليكــم ورحمـة الله وبركاتــه
أرجو أن تساعدوني في معرفة الخطأ في هذا الكود
فهو يعطيني الخطأ في السطر 17 ولا أعرف ما هي المشكلة
<html><head></head><body dir="rtl" background="image\2\companyname.JPG">
<?php
include "config.php";
switch ($upload)
{
default:
echo "<center>";
if(isset($submit));
$host='';
$user='root';
$pw='';
mysql_connect($host,$user,$pw) or die ("please copy database to the true location");
mysql_query("use maalek_asaad");
if(isset($namebook) && isset($fullname) && $namebook!="" && $fullname!="")
{if(isset($email) && $email!="")
{mysql_query("insert into temp_book values("$namebook" , "$fullname" ,"$email","$des","$file_type" )");
}
}
break; // و تجاهل أي خيار أو شرط آخر switch هذا لقطع الأمر
case "uploading": // upload=uploading يعني إذا
$result = "تم تحميل الملف بنجاح !!";
break;
}
@copy($file, "$path/$file_name")
or $result ="لم تختر الملف بشكل صحيح";
echo "<center><p>$result</p></center>";
?> </body></html>