Ver Mensaje Individual
  #10 (permalink)  
Antiguo 20/11/2003, 20:22
Avatar de oktubre
oktubre
 
Fecha de Ingreso: agosto-2003
Ubicación: en mi casa
Mensajes: 371
Antigüedad: 20 años, 7 meses
Puntos: 4
Exclamación aca esta lo que falta!

------------------------------------------------------------------------
selec-baja-nota.php

<?php
session_start();
include("../config.inc.php");
$db = mysql_connect($host, $usuario,$password);
mysql_select_db($database,$db);
$sql = "SELECT * FROM clave where password = '$pass' and usuario = '$user' AND ubicacion='sf'";
$result = mysql_query($sql,$db);
$myrow = mysql_fetch_array($result);
if ($myrow["usuario"] <> ""){
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF">
<form method="post" action="borrar-nota.php">
<table width="477" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="477">
<div align="center"><img src="imagenes/seleccione_nota.gif" width="477" height="23"></div>
</td>
</tr>
<tr>
<td width="477" height="25">
<div align="center">
<select name="item">
<?php
$db = mysql_connect($host, $usuario,$password);
mysql_select_db($database,$db);
$sql = "SELECT * FROM notas WHERE ubicacion='sf' ORDER BY codigo";
$result = mysql_query($sql,$db);
if ($myrow = mysql_fetch_array($result)){
do{
?>
<option value="<? echo $myrow["codigo"] ?>"><? echo $myrow["titulo"] ?></option>
<?
} while ($myrow = mysql_fetch_array($result));
}
?>
</select>
</div>
</td>
</tr>
<tr>
<td width="477">
<div align="center">
<input type="submit" name="Submit" value="Continuar">
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
<?
}
?>
--------------------------------------------------------------------------------
selec-modif-nota.php

<?php
session_start();
include("../config.inc.php");
$db = mysql_connect($host, $usuario,$password);
mysql_select_db($database,$db);
$sql = "SELECT * FROM clave where password = '$pass' and usuario = '$user' AND ubicacion='sf'";
$result = mysql_query($sql,$db);
$myrow = mysql_fetch_array($result);
if ($myrow["usuario"] <> ""){
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF">
<form method="post" action="modif-notas.php">
<table width="477" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="477">
<div align="center"><img src="imagenes/seleccione_nota.gif" width="477" height="23"></div>
</td>
</tr>
<tr>
<td width="477" height="25">
<div align="center">
<select name="item">
<?php
$db = mysql_connect($host, $usuario,$password);
mysql_select_db($database,$db);
$sql = "SELECT * FROM notas WHERE ubicacion='sf' ORDER BY codigo";
$result = mysql_query($sql,$db);
if ($myrow = mysql_fetch_array($result)){
do{
?>
<option value="<? echo $myrow["codigo"] ?>"><? echo $myrow["titulo"] ?></option>
<?
} while ($myrow = mysql_fetch_array($result));
}
?>
</select>
</div>
</td>
</tr>
<tr>
<td width="477">
<div align="center">
<input type="submit" name="Submit" value="Continuar">
</div>
</td>
</tr>
</table>
</form>
</body>
</html>
<?
}
?>

-----------------------------------------------------------------------------

yo lo bautice "Oktubre Press"
que en criollo quiere decir "es mio"

va. no se...

cualquier cosa me dicen en privado, o seguimos modificandolo pa que ande mas lindo.

seguro se dieron cuenta que falta el notas.php, pero eso es facil, llamenlo desde una consulta y lo presentan en su pagina donde mejor le caiga a su diseño.

bye bye
__________________
w32.oktubre@mm <----------------<<<<
prefiero cerrar la boca y parecer un tonto que abrirla y confirmarlo.