Cita:
Iniciado por masterpuppet
Que tal ofertasdiarias,
El problema es a nivel de PHP o de SQL ?, si es de PHP, por favor postea el código, si es de SQL dímelo asi movemos tu thread al foro correspondiente.
Saludos.
tengo este codigo
Código PHP:
<?php require_once('Connections/hoysale.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
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;
}
}
if ((isset($_GET['si'])) && ($_GET['si'] != "")) {
$deleteSQL = sprintf("DELETE FROM registrarse WHERE imagen=%s",
GetSQLValueString($_GET['si'], "text"));
mysql_select_db($database_hoysale, $hoysale);
$Result1 = mysql_query($deleteSQL, $hoysale) or die(mysql_error());
$deleteGoTo = "subir.php";
if (isset($_SERVER['QUERY_STRING'])) {
$deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
$deleteGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $deleteGoTo));
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Documento sin título</title>
</head>
<body>
borrando..
</body>
</html>
es el el codigo con el cual borro, pero borra toda la informacion del usuario y lo que quiero es que solo borre la imagen?