y este es el codigo del slider_remove, el cual elimina lo de la base de datos
Código PHP:
Ver original<?php require_once('Connections/conexionnorthcontrols.php'); ?>
<?php
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
}
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ?
intval($theValue) : "NULL"; break;
case "double":
$theValue = ($theValue != "") ?
doubleval($theValue) : "NULL"; break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
unlink("images/slider/photo/".$image); echo $image;
$deleteGoTo = "slider_lista.php";
if (isset($_SERVER['QUERY_STRING'])) { $deleteGoTo .= (strpos($deleteGoTo, '?')) ?
"&" : "?"; $deleteGoTo .= $_SERVER['QUERY_STRING'];
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/plantilla_remove_slider.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Eliminar Slider</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link rel="shortcut icon" href="images/favicon.ico" />
<link href="css/estiloadmin.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div class="container">
<div class="header">
<?php include("includes/login.php"); ?>
<?php include("includes/cabezera.php"); ?>
<div class="clearfloat"></div>
</div><div class="content">
<h1><strong>Eliminando Slider</strong></h1>
</div>
<div class="clearfloat"></div>
<div class="content1">
<p>Procesando....</p>
</div>
<div class="sidebar1">
<ul class="nav">
<li><a href="slider_lista.php">Slider Principal</a></li>
<li><a href="galeria_lista.php">Galería</a></li>
</ul>
</div>
<div class="clearfloat"></div>
<div class="footer">
<?php include("includes/pie_admin.php"); ?>
</div>
</body>
<!-- InstanceEnd --></html>