Foro de programación en PHP
Problema con programacion Php
| Autor: alfredosky Publicado: 17-9-2009 12:53 PM |
|
|
Hola Cibernautas, estoy progamando mi primera pagina web con acceso a base de datos, y en la tabla que me aparecen los registros anexo una celda mas para colocar una etiqueta ya sea Modificar o Eliminar, y que al dar un click a estas etiquetas pues dispare el proceso que corresponda, pero lamentablemente cuando le doy click a estas etiquetas se genera un error de que no existe la ruta especifcada o que no existe el archivo. Saludos Alfredo Aquino |
|
| Autor: papacito85 Publicado: 23-9-2009 04:55 PM |
|
| solo tienes que poner bien la direccion de la base de datos en que base de datos estas trabajando y poner esactamente como nombraste la tabla con espacios y eso si no no te guardara nada de datos checa todos los nombres de las tablas y campos de las tablas que coincidan con los programados |
|
| Autor: dcreate Publicado: 01-10-2009 02:59 PM |
|
| bueno lo q hago yo es poner diferentes botones para mandar a otras paginas a procesar busq.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=iso-8859-1" /> <title>DIF</title> <script> function a() { document.location="inicio.php"; } function validar(formulario) { if(formulario.curp.value=='') { alert("DEBE INGRESAR CURP"); formulario.curp.focus(); return false; } return true; } </script> </head> <body> <font size=6 face="ARIAL"> <P align="center">BUSCAR DATOS PERSONALES </p> </font> <form onsubmit="return validar(this)" id="form1" name="form1" method="post" action=""> <table width="271" border="1" align="center"> <tr> <td width="90"><strong><font face="Courier New, Courier, monospace"> <label>CURP:</label> </font></strong></td> <td colspan="2"><input name="curp" type="text" id="curp" style="text-transform: uppercase;"/></td> </tr> <tr> <td><strong><font face="Courier New, Courier, monospace"> <label> <input type="button" name="Submit" value="MODIFICAR" onclick="this.form.action='mostrar_modi_par.php'; this.form.submit();"/> </label> <label></label> </font></strong></td> <td width="79"><input type="button" name="Submit3" value="ELIMINAR" onclick="this.form.action='mostrar_elim_par.php'; this.form.submit();"/></td> <td width="80"><input type="button" name="Submit2" value="CANCELAR" onclick="a()" /></td> </tr> </table> <label></label> </form> </body> </html> |
|
| Autor: dcreate Publicado: 01-10-2009 02:59 PM |
|
| bueno lo q hago yo es poner diferentes botones para mandar a otras paginas a procesar busq.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=iso-8859-1" /> <title>DIF</title> <script> function a() { document.location="inicio.php"; } function validar(formulario) { if(formulario.curp.value=='') { alert("DEBE INGRESAR CURP"); formulario.curp.focus(); return false; } return true; } </script> </head> <body> <font size=6 face="ARIAL"> <P align="center">BUSCAR DATOS PERSONALES </p> </font> <form onsubmit="return validar(this)" id="form1" name="form1" method="post" action=""> <table width="271" border="1" align="center"> <tr> <td width="90"><strong><font face="Courier New, Courier, monospace"> <label>CURP:</label> </font></strong></td> <td colspan="2"><input name="curp" type="text" id="curp" style="text-transform: uppercase;"/></td> </tr> <tr> <td><strong><font face="Courier New, Courier, monospace"> <label> <input type="button" name="Submit" value="MODIFICAR" onclick="this.form.action='mostrar_modi_par.php'; this.form.submit();"/> </label> <label></label> </font></strong></td> <td width="79"><input type="button" name="Submit3" value="ELIMINAR" onclick="this.form.action='mostrar_elim_par.php'; this.form.submit();"/></td> <td width="80"><input type="button" name="Submit2" value="CANCELAR" onclick="a()" /></td> </tr> </table> <label></label> </form> </body> </html> |
|

