executeQuery($query,true); /* if(count($getResult)>0) { foreach($getResult as $result) { } } */ if($_GET['act']=='delete' && $_GET['id']!="") { $id=decode($_GET['id']); $query="SELECT * FROM project_master WHERE project_id='$id' and mem_id='$member_id'"; $getResult=$db->executeQuery($query,true); if(count($getResult)>0) { foreach($getResult as $result) { $query="DELETE from project_master where project_id='$id' and mem_id='$member_id'"; $db->executeQuery($query); $query="DELETE from blog_master where project_id='$id'"; $db->executeQuery($query); $query="DELETE from rss_master where project_id='$id'"; $db->executeQuery($query); $query="DELETE from keyword_master where project_id='$id'"; $db->executeQuery($query); $query="DELETE from post_master where project_id='$id'"; $db->executeQuery($query); $query="DELETE from post_setting where project_id='$id' "; $db->executeQuery($query); header('Location: myProjectsFreeUser.php?act=deleted'); } } } include_once('html/header.html'); include_once('html/myProjectsFreeUser.html.php'); include_once('html/footer.html'); ?>