Ver Mensaje Individual
  #44 (permalink)  
Antiguo 09/05/2011, 09:31
cualquiera
 
Fecha de Ingreso: febrero-2007
Mensajes: 232
Antigüedad: 17 años, 2 meses
Puntos: 1
Respuesta: Seleccionar orden de elementos de la lista

este es codigo como esta el archivo actualizar_orden.php

Código PHP:
<?php require_once('../Connections/pallki_banner.php'); ?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
 
parse_str
($_POST['orden']);
 
for (
$i 0$i count($categoria); $i++){
mysql_select_db($database_pallki_banner$pallki_banner);
$query_rs_categoria "UPDATE categorias SET orden = ".$i."WHERE codcategoria =".$categoria[$i];
//No se si esta bien del todo puesta la consulta (las comillas y todo eso).
mysql_query($query_rs_categoria$pallki_banner) or die(mysql_error());
 
}

?>


</body>
</html>