|
my code is
if(isset($_POST['signup']) ){
$sea = $_REQUEST['search'];
if($_REQUEST['area'] == "text"){
$sql = "SELECT * FROM `refrences` WHERE `refText` LIKE '%$sea%' ";
$abc = mysql_query($sql);
}else if($_REQUEST['area'] == "book"){
$sql = "SELECT * FROM `refrences` WHERE `bookPage` LIKE '%$sea%' ";
$abc = mysql_query($sql);
}else{
$sql = "SELECT * FROM `refrences` WHERE cond != """;
$abc = mysql_query($sql);
}
if(isset($_GET['DEL']) && $_GET['DEL']=="yes" && isset($_GET['uid']) && $_GET['uid'] > 0){
$sqlDel = "DELETE FROM refrences WHERE no ='$_GET[uid]'";
$resDel = mysql_query($sqlDel);
header("Location: search.php?msg=Information deleted successfully.");
exit;
}
and the error is in the bolded line syntax error, unexpected T_STRING. When I write the same query in MySql it works efficiently but in my PHP file it shows the error
|