Pregunta: | 68050 - CUANTROS TEXT TENGO EN MI PAGINA |
Autor: | leonardo lira |
hola amigos espero que me puedan ayudar lo que pasa que estoy creando una pagina en php es como un menu de restaurante bueno este es mi codigo de mi pagina <?php session_start(); ?> <!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>Página sin título</title> <meta name="generator" content="WYSIWYG Web Builder 8 Trial Version - http://www.wysiwygwebbuilder.com"> <style type="text/css"> body { background-color: #FFFFFF; color: #000000; } </style> <style type="text/css"> a { color: #0000FF; text-decoration: underline; } a:visited { color: #800080; } a:active { color: #FF0000; } a:hover { color: #0000FF; text-decoration: underline; } </style> <style type="text/css"> #wb_Text1 { background-color: transparent; border: 0px #000000 solid; padding: 0; } #wb_Text1 div { text-align: left; } </style> </head> <body> <button id="AdvancedButton1" type="button" onclick="window.location='/restaurante/index.php'" name="" value="" style="position:absolute;left:145px;top:91px;width:137px;height:87px;z-index:0;"><div style="text-align:center"><span style="color:#000000;font-family:Arial;font-size:13px">** MENU **</span></div></button> <div id="wb_Text1" style="position:absolute;left:425px;top:94px;width:253px;height:49px;z-index:2;text-align:left;"> <span style="color:#000000;font-family:Arial;font-size:43px;"><strong><em><u>ENTRADAS</u></em></strong></span></div> <button id="AdvancedButton2" type="button" onclick="window.location='/restaurante/index.php'" name="" value="" style="position:absolute;left:827px;top:91px;width:137px;height:89px;z-index:3;"><div style="text-align:center"><span style="color:#000000;font-family:Arial;font-size:13px">ACEPTAR<br> PEDIDO</span></div></button> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <BR> <?php session_start(); include_once ("con1.php"); echo "<table align='center' width='600' cellpadding='5' cellspacing='5' border='1'>"; //depending on your own parameters of course, but the values must be in single quotes echo "<tr><td>NOMBRE DE PLATILLO</td><td>PRECIO</td><td>PORCIONES</td></tr>"; //you can do this for as many rows as you like $sentecia ="SELECT * FROM sopas WHERE es='ENTRADA'"; $result = mysql_query($sentecia); $numero =1; $total=0; while ($row = mysql_fetch_array($result)) { $v=$row['nombre']; $b=urlencode($v); echo "<tr><td> <a href=tablaentradas.php?plato=".$b.">".$row["nombre"] ."</a></td>"; ECHO "<td>".$row["precio"] ."</td>"; echo "<td><Input type='text' name=".$row["nombre"]. "size=3 value='0'> </td></tr>"; } echo "</table>"; //this ends your table ?> </body> </html> como ven tengo una tabla con el nombre del platillo el precio y laporcion en la porcion hay cajas de texto el punto es que como no se cuantos platillos va a ver para no perderme a los text les puse el nombre de los platillos ahora queria ver si saben como hacer que se guarden en mysql los que solo sean modificado osea los que son mayores de 0 |