NECESITO AYUDA PORFA

Cerrado
YENNY - 17 abr 2008 a las 20:53
Nnet Mensajes enviados 2152 Fecha de inscripción viernes, 4 de abril de 2008 Estatus Contribuidor Última intervención martes, 26 de octubre de 2010 - 21 abr 2008 a las 21:21
Hola, COMO ESTAS NESECITO AYUDA DE ALGUIEN ME PIDIERON UN PROGRAMA Q CON EL METODO DE CIFRADO CON GUI POR SUSUTITUSION DE POSICIONES Q SEGUN EL CARACTER DADO DE 2 POSICION Q DIFERENCIA ENTRE MAYUSCULAS Y MINUSCULAS
PORFAVOR AYUDENMEMEMEMEM!!!!!!!!!

3 respuestas

Master4 Mensajes enviados 2225 Fecha de inscripción viernes, 4 de abril de 2008 Estatus Miembro Última intervención sábado, 1 de noviembre de 2008 1.497
17 abr 2008 a las 21:02
Hola

Te pidieron algun programa en especial?
0
eliminar registros en php

--------------------------------------------------------------------------------
necesito eliminar registros de la base de datos a traves de el siguiente codigo:

eliminar.php

<?php
include('connexion.php');
$result=mysql_query("select * from eventos");
echo" <BR><BR><table width=\"550\" height=\"50\" borde bordercolor=\"#003399\" align=\"center\" border=\"2\">
<tr>
<td width=\"100\" height=\"90\" rowspan=\"2\" bgcolor=\"#003399\"><div align=\"center\"><img src=\"imagenes/unefa.png\" width=\"70\" height=\"80\" align=\"middle\" /></div></td>
<td width=\"300\" height=\"30\">
<p align=\"center\" class=\"Estilo3\">AUDITORIO ALÍ PRIMERA</p></TD>
<td width=\"100\" height=\"90\" rowspan=\"2\" bgcolor=\"#003399\"><div align=\"center\"><img src=\"imagenes/pasillo3.jpg\" width=\"90\" height=\"80\" align=\"middle\" /></div></td>
</tr>
<tr>
<td bgcolor=\"#0066FF\"><div align=\"center\" class=\"Estilo1\">";
setlocale (LC_TIME,"spanish");
echo"<div align=right><strong>";
echo strftime("%d de %B del %Y");
echo"</strong></div>";
echo" </div>
</td>
</tr>
</table>
<table background=\"imagenes/Auditorio1.jpg\" width=\"550\" height=\"50\" borde=\"0\" bordercolor=\"#003399\" align=\"center\">
<tr>
<td colspan=\"2\"><p>
<table width=\"550\" height=\"100\" border=\"0\" align=\"center\">
<br><tr>
<td>
<p align=\"center\"><strong><font size=5 color=\"0033cc\">Eliminar Evento</font></strong></p>
<center><TABLE BORDER=1 CELLSPACING=2 CELLPADDING=4>
<TR>
<TD bgcolor=\"#003399\"><font color=\"#FFFFFF\"><strong> <B>codigo evento</B></strong></font></TD>
<TD bgcolor=\"#003399\"><font color=\"#FFFFFF\"><strong> <B>Fecha</B></strong></font></TD>
<TD bgcolor=\"#003399\"><font color=\"#FFFFFF\"><strong> <B>Nombre</B></strong></font> </TD>
<TD bgcolor=\"#003399\"><font color=\"#FFFFFF\"><strong> <B>Borrar</B></strong></font> </TD>
</TR>";
while($row = mysql_fetch_array($result)) {
printf("<tr><td> %s</td><td> %s </td><td> %s </td><td><a href=\"borra.php?id=?\">Borra</a></td></tr>", $row["id_evento"],$row["fecha"],$row["nombre_evento"],$row["ID_Prueba"]);
}
mysql_free_result($result);
echo"</TABLE></center>
<br>
<table width=\"530\" border=\"0\" align=\"center\">
<tr>
<td>
<center><input name=\"boton\" type=\"button\" onClick=\"javascript:history.go(-1)\" value=\"Cancelar\" />
</td>
</tr><br>
</table></center>
</form>
<tr>
<td colspan=\"2\" bgcolor=\"#003399\"> </td>
</tr>
<tr>
<td>
</table>
</table>";
?>


borrar.php

<?php
include('connexion.php');
// $link=Conectarse();
$id_evento=$_GET['id_evento'];
mysql_query("delete from eventos where where ID_Prueba = '$id_evento'");

header("Location:eliminar.php");
?>


pero no me elimina el registro y me aparece el siguiente mensaje de error:

Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\audiovisuales\borra.php:9) in C:\wamp\www\audiovisuales\borra.php on line 15
que es esta linea:
header("Location:eliminar.php");

por favor ayudenme
0
Nnet Mensajes enviados 2152 Fecha de inscripción viernes, 4 de abril de 2008 Estatus Contribuidor Última intervención martes, 26 de octubre de 2010 2.257
21 abr 2008 a las 21:21
Hola

Que editor estas usando?
0