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


Tema destacado: Introducción a la Factorización De Semiprimos (RSA)


  Mostrar Mensajes
Páginas: 1 ... 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 118 ... 139
1021  Foros Generales / Sugerencias y dudas sobre el Foro / no puedo entrar a la web en: 7 Septiembre 2014, 20:01 pm
no puedo entrar a la web me dice que soy de china y es mentira no vivo en china, estoy accediendo via proxy, por favor arreglen eso.
1022  Comunicaciones / Redes / cuales serian mis dns en: 6 Septiembre 2014, 13:58 pm
hola amigos si yo instalo apache en mi pc (localhost) cuales serian mis DNS? en que parte las puedo ver?, las necesito para configurar mi dominio .com.

gracias de antemano.
1023  Programación / PHP / Re: como modificar un archivo php desde otro en: 9 Agosto 2014, 01:51 am
Suponiendo que index.php este en la misma carpeta:

Código
  1. file_put_contents("bye", "index.php");
no me sirve porque necesito modificar un archivo muy grande lo de "bye" lo dije como ejemplo yo necesito cambiar el codigo completo de un php y no me deja me marca error cuando uso ese comando.
1024  Programación / PHP / como modificar un archivo php desde otro en: 31 Julio 2014, 20:08 pm
hola amigos queria saber como modifico un archivo php desde otro, ejemplo si tengo un archivo:

index.php

Código:
hola

cuando yo haga click en cambiar.php

me salga un mensaje diciendo "cambiado"' y me cambie el index.php por:

index.php

Código:
bye

como haria para hacer eso?

muchas gracias de antemano.
1025  Programación / PHP / ayuda como hacer nombre tabla en: 30 Julio 2014, 19:11 pm
hola amigos como puedo hacer que salga el nombre de la tabla encima de los datos

aqui mi codigo:

Código:
		$id = $test['id'];	
echo "<tr align='center'>";
echo"<td><font color='black'>" .$test['id']."</font></td>";
echo"<td><font color='black'>" .$test['Vendedor']."</font></td>";
echo"<td><font color='black'>". $test['Semana']. "</font></td>";
echo"<td><font color='black'>". $test['QuienPago']. "</font></td>";
echo"<td><font color='black'>". $test['Proveedor']. "</font></td>";
echo"<td><font color='black'>" .$test['Fecha']."</font></td>";
echo"<td><font color='black'>" .$test['Control']."</font></td>";
echo"<td><font color='black'>". $test['Adelanto']. "</font></td>";
echo"<td><font color='black'>". $test['Cotizacion']. "</font></td>";
echo"<td><font color='black'>". $test['Año']. "</font></td>";
        echo"<td><font color='black'>" .$test['Tipo']."</font></td>";
echo"<td><font color='black'>" .$test['Cliente']."</font></td>";
echo"<td><font color='black'>". $test['Descripcion']. "</font></td>";
echo"<td><font color='black'>". $test['Factura']. "</font></td>";
echo"<td><font color='black'>". $test['MontoTotal']. "</font></td>";
                echo"<td><font color='black'>". $test['MontoTotal2']. "</font></td>";
echo"<td><font color='black'>". $test['Factura2']. "</font></td>";

la idea es que arriba de los datos salga el nombre de la tabla ejemplo:
Vendedor
Juan

actualmente con mi codigo cuando llenas  los datos solo sale
Juan

mas no el nombre eso es lo que busco

gracias de antemano.
1026  Programación / PHP / Re: ayuda no me guarda los datos en: 30 Julio 2014, 19:01 pm
ya sirvio gracias amigo
1027  Programación / PHP / Re: ayuda no me guarda los datos en: 30 Julio 2014, 15:56 pm
amigo leete esto se que es un poco lago el tema pero hay te explicara todo

http://foro.elhacker.net/php/duda_sobre_guardar_datos_en_cada_usuario_en_php-t418008.0.html
gracias pero no me sirve, ya que mi codigo es otro...
1028  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
1029  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.  
1030  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...
Páginas: 1 ... 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 118 ... 139
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines