elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Guía rápida para descarga de herramientas gratuitas de seguridad y desinfección


  Mostrar Mensajes
Páginas: 1 ... 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 [102] 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 ... 138
1011  Programación / PHP / Re: ayuda no me guarda los datos en: 30 Julio 2014, 15:37 pm
sigue sin servir cuando me refiero a que no hace nada es que el programa cuando le doy al boton agregar me regresa al TOP osea al principio de la pagina y no me agrega nada a la base de datos
1012  Programación / PHP / Re: ayuda no me guarda los datos en: 30 Julio 2014, 14:00 pm
este es el codigo final del index2

Código
  1. <!DOCTYPE html>
  2.  
  3.  
  4.  
  5.  
  6.  
  7. <div id="content" class="style3" style="height: 5600px; width: 2600px;">
  8. <form method="post" style="height: 442px; width: 610px">
  9. <span class="style4">
  10. <img alt="" class="style5" height="135" src="img/login_logo.png" style="float: left" width="156" /></span><strong>&nbsp;<br>
  11. <br><br><br><br><br><br>&nbsp;&nbsp;&nbsp;&nbsp; AGREGAR GASTO<br> </strong>
  12. <br>
  13. <table class="style6" style="height: 253; width: 512">
  14.  
  15. <tr>
  16. <td class="style8">Vendedor</td>
  17. <td><input type="text" name="Vendedor" /></td>
  18. </tr>
  19. <tr>
  20. <td class="style8">Semana
  21. </td>
  22. <td><input type="text" name="Semana" /></td>
  23. </tr>
  24. <tr>
  25. <td class="style8">Quien Pago</td>
  26. <td><input type="text" name="QuienPago" /></td>
  27. </tr>
  28. <tr>
  29. <td style="height: 46px" class="style8">Proveedor</td>
  30. <td style="height: 46px"><input type="text" name="Proveedor" /></td>
  31. </tr>
  32. <tr>
  33. <td style="height: 65px" class="style8">Fecha</td>
  34. <td style="height: 65px" class="style7">
  35. <input type="text" name="Fecha" /></td>
  36. </tr>
  37. <tr>
  38. <td style="height: 65px" class="style8">Nº
  39. de Control</td>
  40. <td style="height: 65px" class="style7">
  41. <input type="text" name="Control" /></td>
  42. </tr>
  43. <tr>
  44. <td style="height: 65px" class="style8">Adelanto en la Semana</td>
  45. <td style="height: 65px" class="style7">
  46. <input type="text" name="Adelanto" /></td>
  47. </tr>
  48. <tr>
  49. <td style="height: 65px" class="style8">Cotización
  50. </td>
  51. <td style="height: 65px" class="style7">
  52. <input type="text" name="Cotizacion" /></td>
  53. </tr>
  54. <tr>
  55. <td style="height: 65px" class="style8">Año </td>
  56. <td style="height: 65px" class="style7">
  57. <input type="text" name="Año" /></td>
  58. </tr>
  59. <tr>
  60. <td style="height: 65px" class="style8">Tipo </td>
  61. <td style="height: 65px" class="style7">
  62. <input type="text" name="Tipo" /></td>
  63. </tr>
  64. <tr>
  65. <td style="height: 65px" class="style8">Cliente </td>
  66. <td style="height: 65px" class="style7">
  67. <input type="text" name="Cliente" /></td>
  68. </tr>
  69. <tr>
  70. <td style="height: 65px" class="style8">Descripción </td>
  71. <td style="height: 65px" class="style7">
  72. <input type="text" name="Descripcion" /></td>
  73. </tr>
  74. <tr>
  75. <td style="height: 65px" class="style8">Nº Factura</td>
  76. <td style="height: 65px" class="style7">
  77. <input type="text" name="Factura" /></td>
  78. </tr>
  79. <tr>
  80. <td style="height: 65px" class="style8">Monto Total</td>
  81. <td style="height: 65px" class="style7">
  82. <input type="text" name="MontoTotal" /></td>
  83. </tr>
  84. <tr>
  85. <td style="height: 65px" class="style8">Monto Total a Pagar</td>
  86. <td style="height: 65px" class="style7">
  87. <input type="text" name="MontoTotal2" /></td>
  88. </tr>
  89. <tr>
  90. <td style="height: 65px" class="style8">Número de Factura en Venta</td>
  91. <td style="height: 65px" class="style7">
  92. <input type="text" name="Factura2" /></td>
  93. </tr>
  94. <tr>
  95. <td style="height: 65px">&nbsp;</td>
  96. <td style="height: 65px" class="style7"><a href="index1.php">
  97.  
  98.  
  99. <input name="Button1" style="width: 147px; height: 34px" type="button" value="Regresar" class="boton"></a>&nbsp;&nbsp;
  100. &nbsp;&nbsp;&nbsp;&nbsp;
  101. <input type="submit" name="submit" value="Agregar" style="width: 147px; height: 34px" class="boton" /></td>
  102. </tr>
  103. </table>
  104. <table border="1" style="height: 31px;width: 501px;" class="style7" align="center">
  105.  
  106. <?php
  107. if (isset($_POST['submit']))
  108. {  
  109. include 'db.php';
  110.  
  111. $Vendedor=$_POST['Vendedor'] ;
  112. $Semana= $_POST['Semana'] ;
  113. $QuienPago=$_POST['QuienPago'] ;
  114. $Proveedor=$_POST['Proveedor'] ;
  115.            $Fecha=$_POST['Fecha'] ;
  116. $Control=$_POST['Control'] ;
  117. $Adelanto=$_POST['Adelanto'] ;
  118. $Cotizacion=$_POST['Cotizacion'] ;
  119. $Año=$_POST['Año'] ;
  120. $Tipo=$_POST['Tipo'] ;
  121. $Cliente=$_POST['Cliente'] ;
  122. $Descripcion=$_POST['Descripcion'] ;
  123. $Factura=$_POST['Factura'] ;
  124. $MontoTotal=$_POST['MontoTotal'] ;
  125. $MontoTotal2=$_POST['MontoTotal2'] ;
  126. $Factura2=$_POST['Factura2'] ;
  127.  
  128. mysql_query("ALTER TABLE servicio AUTO_INCREMENT=1");
  129. mysql_query("INSERT INTO `servicio`(Vendedor,Semana,QuienPago,Proveedor,Fecha,Control,Adelanto,Cotizacion,Año,Tipo,Cliente,Descripcion,Factura,MontoTotal,MontoTotal2,Factura2)
  130. VALUES ('$Vendedor','$Semana','$QuienPago','$Proveedor''$Fecha','$Control','$Adelanto','$Cotizacion','$Año','$Tipo','$Cliente','$Descripcion','$Factura','$MontoTotal','$MontoTotal2','$Factura2')");
  131.  
  132.  
  133.        }
  134. ?>
  135.  
  136.  
  137. <?php
  138. include("db.php");
  139.  
  140.  
  141. $result=mysql_query("SELECT * FROM servicio");
  142.  
  143. while($test = mysql_fetch_array($result))
  144. {
  145. $id = $test['id'];
  146. echo "<tr align='center'>";
  147. echo"<td><font color='black'>" .$test['id']."</font></td>";
  148. echo"<td><font color='black'>" .$test['Vendedor']."</font></td>";
  149. echo"<td><font color='black'>". $test['Semana']. "</font></td>";
  150. echo"<td><font color='black'>". $test['QuienPago']. "</font></td>";
  151. echo"<td><font color='black'>". $test['Proveedor']. "</font></td>";
  152. echo"<td><font color='black'>" .$test['Fecha']."</font></td>";
  153. echo"<td><font color='black'>" .$test['Control']."</font></td>";
  154. echo"<td><font color='black'>". $test['Adelanto']. "</font></td>";
  155. echo"<td><font color='black'>". $test['Cotizacion']. "</font></td>";
  156. echo"<td><font color='black'>". $test['Año']. "</font></td>";
  157.        echo"<td><font color='black'>" .$test['Tipo']."</font></td>";
  158. echo"<td><font color='black'>" .$test['Cliente']."</font></td>";
  159. echo"<td><font color='black'>". $test['Descripcion']. "</font></td>";
  160. echo"<td><font color='black'>". $test['Factura']. "</font></td>";
  161. echo"<td><font color='black'>". $test['MontoTotal']. "</font></td>";
  162.                echo"<td><font color='black'>". $test['MontoTotal2']. "</font></td>";
  163. echo"<td><font color='black'>". $test['Factura2']. "</font></td>";
  164.  
  165. echo"<td> <a href ='view.php?id=$id'><strong>Editar</strong></a>";
  166. echo"<td> <a href ='del.php?id=$id'><strong>Eliminar<strong></a>";
  167.  
  168. echo "</tr>";
  169. }
  170. mysql_close($conn);
  171. ?>
  172. </table>
  173.  
1013  Programación / PHP / Re: ayuda no me guarda los datos en: 30 Julio 2014, 04:25 am
no funciona y ya arregle las comas y puse el comando y no guarda nada en view.php ya no me da el error si no que pasa como en index.php que el boton no hace nada...
1014  Programación / PHP / Re: ayuda no me guarda los datos en: 30 Julio 2014, 03:42 am
fijate index.php no me marca ningun error relleno los campos y cuando presiono el boton agregar simplemente no hace nada osea no funciona, en cambio cuando entro en view.php y relleno los campos  y presiono guardar me sale:

 "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '100,Adelanto ='1500,Cotizacion ='2000,Año =',Tipo =',Cliente =',Descripcion =',F' at line 2"
1015  Programación / PHP / Re: ayuda no me guarda los datos en: 30 Julio 2014, 03:09 am
no lanza ningun error, ni siquiera agregandole esa funcion
1016  Programación / PHP / Re: ayuda no me guarda los datos en: 30 Julio 2014, 02:17 am
sigue sin funcionarme...
1017  Programación / PHP / ayuda no me guarda los datos en: 30 Julio 2014, 00:59 am
hola amigos por favor ayudenme no me guarda los datos, muchas gracias de antemano, aqui va mi codigo:

index.php

Código
  1. <?php
  2. if (isset($_POST['submit']))
  3. {  
  4. include 'db.php';
  5.  
  6. $Vendedor=$_POST['Vendedor'] ;
  7. $Semana= $_POST['Semana'] ;
  8. $QuienPago=$_POST['QuienPago'] ;
  9. $Proveedor=$_POST['Proveedor'] ;
  10.            $Fecha=$_POST['Fecha'] ;
  11. $Control=$_POST['Control'] ;
  12. $Adelanto=$_POST['Adelanto'] ;
  13. $Cotizacion=$_POST['Cotizacion'] ;
  14. $Año=$_POST['Año'] ;
  15. $Tipo=$_POST['Tipo'] ;
  16. $Cliente=$_POST['Cliente'] ;
  17. $Descripcion=$_POST['Descripcion'] ;
  18. $Factura=$_POST['Factura'] ;
  19. $MontoTotal=$_POST['MontoTotal'] ;
  20. $MontoTotal2=$_POST['MontoTotal2'] ;
  21. $Factura2=$_POST['Factura2'] ;
  22.  
  23. mysql_query("ALTER TABLE servicio AUTO_INCREMENT=1");
  24. mysql_query("INSERT INTO `servicio`(Vendedor,Semana,QuienPago,Proveedor,Fecha,Control,Adelanto,Cotizacion,Año,Tipo,Cliente,Descripcion,Factura,MontoTotal,MontoTotal2,Factura2)
  25. VALUES ('$Vendedor','$Semana','$QuienPago','$Proveedor''$Fecha','$Control','$Adelanto','$Cotizacion''$Año','$Tipo','$Cliente','$Descripcion''$Factura','$MontoTotal','$MontoTotal2','$Factura2')");
  26.  
  27.  
  28.        }
  29. ?>
  30.  
  31.  
  32. <?php
  33. include("db.php");
  34.  
  35.  
  36. $result=mysql_query("SELECT * FROM servicio");
  37.  
  38. while($test = mysql_fetch_array($result))
  39. {
  40. $id = $test['id'];
  41. echo "<tr align='center'>";
  42. echo"<td><font color='black'>" .$test['id']."</font></td>";
  43. echo"<td><font color='black'>" .$test['Vendedor']."</font></td>";
  44. echo"<td><font color='black'>". $test['Semana']. "</font></td>";
  45. echo"<td><font color='black'>". $test['QuienPago']. "</font></td>";
  46. echo"<td><font color='black'>". $test['Proveedor']. "</font></td>";
  47. echo"<td><font color='black'>" .$test['Fecha']."</font></td>";
  48. echo"<td><font color='black'>" .$test['Control']."</font></td>";
  49. echo"<td><font color='black'>". $test['Adelanto']. "</font></td>";
  50. echo"<td><font color='black'>". $test['Cotizacion']. "</font></td>";
  51. echo"<td><font color='black'>". $test['Año']. "</font></td>";
  52.        echo"<td><font color='black'>" .$test['Tipo']."</font></td>";
  53. echo"<td><font color='black'>" .$test['Cliente']."</font></td>";
  54. echo"<td><font color='black'>". $test['Descripcion']. "</font></td>";
  55. echo"<td><font color='black'>". $test['Factura']. "</font></td>";
  56. echo"<td><font color='black'>". $test['MontoTotal']. "</font></td>";
  57.                echo"<td><font color='black'>". $test['MontoTotal2']. "</font></td>";
  58. echo"<td><font color='black'>". $test['Factura2']. "</font></td>";
  59.  
  60. echo"<td> <a href ='view.php?id=$id'><strong>Editar</strong></a>";
  61. echo"<td> <a href ='del.php?id=$id'><strong>Eliminar<strong></a>";
  62.  
  63. echo "</tr>";
  64. }
  65. mysql_close($conn);
  66. ?>
  67. </table>
  68.  

view.php

Código
  1. <?php
  2. require("db.php");
  3. $id =$_REQUEST['id'];
  4. $result = mysql_query("SELECT * FROM servicio WHERE id  = '$id'");
  5. $test = mysql_fetch_array($result);
  6. if (!$result)
  7. {
  8. die("Error: No existe la data");
  9. }
  10. $Vendedor=$test['Vendedor'] ;
  11. $Semana= $test['Semana'] ;
  12. $QuienPago=$test['QuienPago'] ;
  13. $Proveedor=$test['Proveedor'] ;
  14. $Fecha=$test['Fecha'] ;
  15. $Control= $test['Control'] ;
  16. $Adelanto=$test['Adelanto'] ;
  17. $Cotizacion=$test['Cotizacion'] ;
  18. $Año=$test['Año'] ;
  19. $Tipo= $test['Tipo'] ;
  20. $Cliente=$test['Cliente'] ;
  21. $Descripcion=$test['Descripcion'] ;
  22. $Factura=$test['Factura'] ;
  23. $MontoTotal= $test['MontoTotal'] ;
  24. $MontoTotal2=$test['MontoTotal2'] ;
  25. $Factura2=$test['Factura2'] ;
  26.  
  27.  
  28.  
  29.  
  30. if(isset($_POST['save']))
  31. {
  32.                $Vendedor_save=$_POST['Vendedor'] ;
  33. $Semana_save= $_POST['Semana'] ;
  34. $QuienPago_save=$_POST['QuienPago'] ;
  35. $Proveedor_save=$_POST['Proveedor'] ;
  36.            $Fecha_save=$_POST['Fecha'] ;
  37. $Control_save=$_POST['Control'] ;
  38. $Adelanto_save=$_POST['Adelanto'] ;
  39. $Cotizacion_save=$_POST['Cotizacion'] ;
  40. $Año_save=$_POST['Año'] ;
  41. $Tipo_save=$_POST['Tipo'] ;
  42. $Cliente_save=$_POST['Cliente'] ;
  43. $Descripcion_save=$_POST['Descripcion'] ;
  44. $Factura_save=$_POST['Factura'] ;
  45. $MontoTotal_save=$_POST['MontoTotal'] ;
  46. $MontoTotal2_save=$_POST['MontoTotal2'] ;
  47. $Factura2_save=$_POST['Factura2'] ;
  48.  
  49. mysql_query("UPDATE servicio SET Vendedor ='$Vendedor_save', Semana ='$Semana_save',
  50. QuienPago ='$QuienPago_save',Proveedor ='$Proveedor_save',Fecha ='$Fecha_save,Control ='$Control_save,Adelanto ='$Adelanto_save,Cotizacion ='$Cotizacion_save,Año ='$Año_save,Tipo ='$Tipo_save,Cliente ='$Cliente_save,Descripcion ='$Descripcion_save,Proveedor ='$Proveedor_save,Factura ='$Factura_save,MontoTotal ='$MontoTotal_save,MontoTotal2 ='$MontoTotal2_save,Factura2 ='$Factura2_save WHERE id = '$id'")
  51. or die(mysql_error());
  52. echo "Guardado!";
  53.  
  54.  
  55. }
  56. mysql_close($conn);
  57. ?>
  58.  
1018  Seguridad Informática / Hacking / alguien tiene un clon o fake de skype en: 6 Julio 2014, 18:50 pm
hola amigos alguien tiene un clon o fake skype que guarde la contraseña en la pc.
gracias de antemano.
1019  Seguridad Informática / Hacking / ayuda con acunetix en: 2 Julio 2014, 22:37 pm
hola amigos cuando escaneo una web con acunetix al finalizar me da una opcion para lanzar el ataque pero al parecer nunca me funciona o es como una simulacion adentro del programa, realmente no entiendo, alguien me explica como funciona esa opcion.

gracias de antemano.
1020  Comunicaciones / Redes / Re: duda servidor http y ftp en: 2 Julio 2014, 20:54 pm
Tienes que configurar donde estas subiendo tus archivos por FTP. Tienes que subir los archivos al directorio raiz del servidor HTTP.
gracias amigo funciono.
Páginas: 1 ... 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 [102] 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 ... 138
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines