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

 

 


Tema destacado: Únete al Grupo Steam elhacker.NET


  Mostrar Temas
Páginas: [1] 2 3
1  Programación / PHP / tablas de multiplcar en: 2 Octubre 2017, 21:19 pm
toi haciendo programa que haga las tabla de multiplicar del 8 al 10 asi
8 x10,8x11,8x12 9x10,9x11,9x12 lo hice con un for pero ahora debo de hacerlo con while y con do while pero no se por no sale igual

este es con for
Código
  1. //antiganso
  2. for($t=8; $t<=10; $t++)
  3. {
  4. echo "<h3> Tabla del $t </h3>";
  5.  
  6. // generamos la tabla
  7. for($i=8; $i<=12; $i++)
  8. {
  9.  echo "$t x $i = ".($t*$i) . "<br/>";
  10.  
  11.  
  12. }
  13. }
  14. ?>

aqui lo hice con while pero no sale igual no imrpime la tablas completo no saben a que se deba?


Código
  1. $t=8;
  2. $i=8;
  3. while($t<=10)
  4. {
  5. echo "<h3> Tabla del $t </h3>";
  6. echo $t++;
  7.  
  8. while($i<=12)
  9. {
  10.  echo "$t x $i = ".($t*$i) . "<br/>";
  11.  echo $i++;
  12.  
  13. }
  14. }
  15. ?>
2  Programación / PHP / Problemas con programa k calcula factorial del numero en: 29 Septiembre 2017, 22:25 pm
Ando intentnaod hace run programa k calcule el factorial d eun numero pero no entiendo como hacer que me imprime de ciertos numeros especificos intenrte hacer esto

Código
  1.  
  2. <?php
  3. $factorial=1;
  4. $num=5;
  5.  
  6. for($i=0; <=num; $i++ )
  7. $factorial=$factorial * $i
  8.  
  9. echo "El factorial del numero es" $factorial;
  10.  
  11.  
  12.  
  13. ?>
  14.  
  15. pero ocupo que sean de asi es la parte que no me sale  alguien tiene idea de como se resuelve
  16. 4x3x2x1
  17. 4x3=12
  18. 12x3=36
  19. 36 x 2=78
  20. 78 x 1 = 78
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
3  Programación / PHP / Problema con programa en: 27 Septiembre 2017, 08:43 am
Buenas estoy intentaod hacer un programa que muetsre numerois pares,impares k cuente del 10 al 1 y de 5 en 5 pero ocupo k el resuktado se vea asi en pantalla en forma de  hacia abajo  no como lo tradicional que es en una linea de codigo hice esto peor no logro have rk se vean seprados soi nuevo en php
10   2          1          1
 9                   3           5
  8                5          10
 7       4
      6
      8
     
Código
  1. <?php
  2. for($i=1; $i<=10; $i++){
  3.    $sucesivo=11-$i;
  4.    $pares=$i * 2;
  5.    $impares=$i * 2 -1;
  6.    $extras=$i * 5-5;
  7.  
  8.    echo $sucesivo,$pares,$impares,$extras;
  9.  
  10.  
  11.  
  12. }
  13.  
  14. ?>
  15.  

pero me sale lineal y no me sale en columnas hacia abajo alguien tiene idea de como se hace?

Saludos



4  Programación / Bases de Datos / error con un procedimiento con cursor en: 21 Abril 2017, 09:12 am
buenas noches estaba haciendo un ejercicio pero no encuentro el error por mas que busco no se a que se deba y no se mucho de mysql  intento hacer esto

Código
  1. CREATE PROCEDURE temporal( IN temp INT)
  2. BEGIN
  3.  
  4. DECLARE maxima INT
  5. SELECT MAX(ventas) FROM vendedor INTO maxima;
  6. CREATE TABLE ven_temp AS SELECT id_vendedor FROM vendedor;
  7. WHERE ventas=maxima;
  8. COMMIT;
  9. END;
  10.  

me marca error #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'SELECT max(ventas) FROM vendedor INTO maxima' at line 5 quito . y comas y sigue igual no se a que se deba

creo que puede ser por la version pero no se como se haga a la version que tengo uso esta
Versión de PHP: 5.5.38
phpmyadmin Acerca de esta versión: 4.5.1

Saludos
5  Programación / PHP / querys que no se comunican con la bd en: 25 Noviembre 2016, 07:08 am
Buenas comunidad etuve investigand y ya pude hacer que unos querys me guarden a la base de datos pero hay otros que no y sigo el mismo procedmiento no entiendo a que se deba ya verifica los id,hice un select db con la bd pero no me guardan a la base de datos
quisiera saber que me esta fallando por ya llevo haciendo muchas maneras y no logro haer que se guarde en esta tabla
Código
  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.  
  5.  
  6.  
  7. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  8. <title>Documento sin título</title>
  9. </head>
  10.  
  11.  
  12. <marquee bgcolor="#0000CC"> INGRESE SUS DATOS</marquee>
  13. <form id="form1" name="form1" method="post" action="Datospersonales.php">
  14.  <p>&nbsp;</p>
  15.  <p><strong>DATOS PERSONALES </strong>  </p>
  16.  <table width="353" border="0">
  17.    <tr>
  18.      <td>ID</td>
  19.      <td><label for="id"></label>
  20.      <input type="text" name="id" id="id" /></td>
  21.    </tr>
  22.    <tr>
  23.      <td>NOMBRE</td>
  24.      <td><label for="nombres"></label>
  25.      <input type="text" name="nombres" id="nombres" /></td>
  26.    </tr>
  27.    <tr>
  28.      <td>PATERNO</td>
  29.      <td><label for="paterno"></label>
  30.      <input type="text" name="paterno" id="paterno" /></td>
  31.    </tr>
  32.    <tr>
  33.      <td>MATERNO</td>
  34.      <td><label for="materno"></label>
  35.      <input type="text" name="materno" id="materno" /></td>
  36.    </tr>
  37.    <tr>
  38.      <td>ID CIIVIL</td>
  39.      <td><label for="id_civil"></label>
  40.      <input type="text" name="id_civil" id="id_civil" /></td>
  41.    </tr>
  42.    <tr>
  43.      <td>DIRECCION</td>
  44.      <td><label for="direccion"></label>
  45.      <input type="text" name="direccion" id="direccion" /></td>
  46.    </tr>
  47.    <tr>
  48.      <td>EMAIL PRINCIPAL</td>
  49.      <td><label for="correop"></label>
  50.      <input type="text" name="correop" id="correop" /></td>
  51.    </tr>
  52.    <tr>
  53.      <td>EMAIL ALT.</td>
  54.      <td><label for="correoa"></label>
  55.      <input type="text" name="correoa" id="correoa" /></td>
  56.    </tr>
  57.    <tr>
  58.      <td>CELULAR      </td>
  59.      <td><label for="tcelular"></label>
  60.      <input type="text" name="tcelular" id="tcelular" /></td>
  61.    </tr>
  62.    <tr>
  63.      <td>TELEFONO CASA</td>
  64.      <td><label for="tcasa"></label>
  65.      <input type="text" name="tcasa" id="tcasa" /></td>
  66.    </tr>
  67.    <tr>
  68.      <td>TELEFONO TRABAJO</td>
  69.      <td><label for="ttrabajo"></label>
  70.      <input type="text" name="ttrabajo" id="ttrabajo" /></td>
  71.    </tr>
  72.    <tr>
  73.      <td>F.NACIMIENTO</td>
  74.      <td><input type="date" name="f_nacimiento" id="f_nacimiento" /></td>
  75.    </tr>
  76.    <tr>
  77.      <td>GENERO</td>
  78.      <td><label for="genero"></label>
  79.        <select name="genero" id="genero">
  80.          <option value="1">Hombre</option>
  81.          <option value="2">Mujer</option>
  82.      </select></td>
  83.    </tr>
  84.    <tr>
  85.      <td>PAIS </td>
  86.      <td><select name="pais_nacimiento" id="pais_nacimiento">
  87.        <option>Alemania</option>
  88.        <option>Argentina</option>
  89.        <option>Autralia</option>
  90.        <option>Bahamas</option>
  91.        <option>Belgica</option>
  92.        <option>Belice</option>
  93.        <option>Bolivia</option>
  94.        <option>Brasil</option>
  95.        <option>Camerun</option>
  96.        <option>Canada</option>
  97.        <option>Chile</option>
  98.        <option>China</option>
  99.        <option>Ciudad del vaticano</option>
  100.        <option>Colombia</option>
  101.        <option>Corea del norte</option>
  102.        <option>Corea del sur</option>
  103.        <option>Costa rica</option>
  104.        <option>Croacia</option>
  105.        <option>Cuba</option>
  106.        <option>Dinamarca</option>
  107.        <option>Ecuador</option>
  108.        <option>Egipto</option>
  109.        <option>El salvador</option>
  110.        <option>Eslovaquia</option>
  111.        <option>España</option>
  112.        <option>Estados Unidos</option>
  113.        <option>Filipinas</option>
  114.        <option>Francia</option>
  115.        <option>Grecia</option>
  116.        <option>Guatemala</option>
  117.        <option>Honduras</option>
  118.        <option>India</option>
  119.        <option>Irak</option>
  120.        <option>Iran</option>
  121.        <option>Irlanda</option>
  122.        <option>Jamaica</option>
  123.        <option>Madagascar</option>
  124.        <option>Montenegro</option>
  125.        <option>Mexico</option>
  126.        <option>Nueva Zelanda</option>
  127.        <option>Peru</option>
  128.        <option>Uruguay</option>
  129.      </select></td>
  130.    </tr>
  131.    <tr>
  132.      <td>ESTADO</td>
  133.      <td><select name="edo_nacimiento" id="edo_nacimiento">
  134.        <option>Aguascalientes</option>
  135.        <option>Baja California</option>
  136.      </select></td>
  137.    </tr>
  138.    <tr>
  139.      <td>NACIONALIDAD</td>
  140.      <td><select name="nacionalidad" id="nacionalidad">
  141.        <option>mexicano</option>
  142.      </select></td>
  143.    </tr>
  144.    <tr>
  145.      <td>IDENTIDAD</td>
  146.      <td><select name="identidad" id="identidad">
  147.        <option value="1">CURP</option>
  148.        <option value="2">INE</option>
  149.        <option value="3">IMSS</option>
  150.        <option value="4">ISSSTE</option>
  151.        <option value="5">ISSSTECALLI</option>
  152.        <option value="6">CARTILLA</option>
  153.      </select></td>
  154.    </tr>
  155.    <tr>
  156.      <td>FOTO</td>
  157.      <td><label for="foto"></label>
  158.      <input type="text" name="foto" id="foto" /></td>
  159.    </tr>
  160.  </table>
  161.  <p>&nbsp;</p>
  162.  <p>
  163.    <input type="submit" name="Enviar" id="Enviar" value="Enviar" />
  164.  </p>
  165.  <p>&nbsp;</p>
  166. </form>
  167.  
  168. <body background="file:///C:/Users/Desktop/carpetas%20de%20cosas/desarrollo/conacyt2.png">
  169.  
  170.  
  171. </body>
  172. </html>
  173.  
Código
  1. <?php
  2. include("conexion4.php");  
  3.  if($_POST){  
  4. $id=$_POST['id'];
  5. $nombres=$_POST['nombres'];
  6. $paterno=$_POST['paterno'];
  7. $materno=$_POST['materno'];
  8. $id_civil=$_POST['id_civil'];
  9. $direccion=$_POST['direccion'];
  10. $correop=$_POST['correop'];
  11. $correoa=$_POST['correoa'];
  12. $tcelular=$_POST['tcelular'];
  13. $tcasa=$_POST['tcasa'];
  14. $ttrabajo=$_POST['ttrabajo'];
  15. $f_nacimiento=$_POST['f_nacimiento'];
  16. $genero=$_POST['genero'];
  17. $pais_nacimiento=$_POST['pais_nacimiento'];
  18. $edo_nacimiento=$_POST['edo_nacimiento'];
  19. $nacionalidad=$_POST['nacionalidad'];
  20. $identidad=$_POST['identidad'];
  21. $foto=$_POST['foto'];
  22.  
  23. }
  24.    if(Enviar=="Enviar"){
  25.   $insertar= "INSERT INTO tb_personales(id,nombres,paterno,materno,id_civil,direccion,correop,correoa,tcelular,tcasa,ttrabajo,f_nacimiento,genero,pais_nacimiento,edo_nacimiento,nacionalidad,identidad,foto)
  26.   VALUES('$id','$nombres','$paterno','$materno','$id_civil','$direccion','$correop','$correoa','$tcelular','$tcasa','$ttrabajo','$f_nacimiento','$genero','$pais_nacimiento','$edo_nacimiento','$nacionalidad','$identidad','$foto')";
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36. <?php
  37. $con=mysql_connect("localhost","root","") or die (mysql_error());
  38.  
  39. $db=mysql_select_db("bd_conacyt",$con) or die (mysql_error());
  40.  
  41.  
  42.  







6  Programación / PHP / query no guarda registros en la bd en: 16 Noviembre 2016, 07:48 am
Buenas comunidad tengo un problema que no he podido encontrar el por que ya tengo todo listo ya esta hecho solo falta que me guarde los registros que se ingresan en las tablas a la base de datos hice esta tabla pero no me guarda cuando ingreso datos ya  busque en muchos videos pero no hallo no se que este haciendo mal cambie el msqlqueri por el mysqliquery pero sige sin guardarlos no saben a que se deba?

esta es la tabla
Código
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>Documento sin título</title>
  5. </head>
  6.  
  7. <form id="form1" name="form1" method="post" action="Datospersonales.php">
  8.  <p>&nbsp;</p>
  9.  <p><strong>DATOS PERSONALES </strong>  </p>
  10.  <table width="353" border="0">
  11.    <tr>
  12.      <td>ID</td>
  13.      <td><label for="id"></label>
  14.      <input type="text" name="id" id="id" /></td>
  15.    </tr>
  16.    <tr>
  17.      <td>NOMBRE</td>
  18.      <td><label for="nombres"></label>
  19.      <input type="text" name="nombres" id="nombres" /></td>
  20.    </tr>
  21.    <tr>
  22.      <td>PATERNO</td>
  23.      <td><label for="paterno"></label>
  24.      <input type="text" name="paterno" id="paterno" /></td>
  25.    </tr>
  26.    <tr>
  27.      <td>MATERNO</td>
  28.      <td><label for="materno"></label>
  29.      <input type="text" name="materno" id="materno" /></td>
  30.    </tr>
  31.    <tr>
  32.      <td>ID CIIVIL</td>
  33.      <td><label for="id_civil"></label>
  34.      <input type="text" name="id_civil" id="id_civil" /></td>
  35.    </tr>
  36.    <tr>
  37.      <td>DIRECCION</td>
  38.      <td><label for="direccion"></label>
  39.      <input type="text" name="direccion" id="direccion" /></td>
  40.    </tr>
  41.    <tr>
  42.      <td>EMAIL PRINCIPAL</td>
  43.      <td><label for="emailPrincipal"></label>
  44.      <input type="text" name="emailPrincipal" id="emailPrincipal" /></td>
  45.    </tr>
  46.    <tr>
  47.      <td>EMAIL ALT.</td>
  48.      <td><label for="emailalt"></label>
  49.      <input type="text" name="emailalt" id="emailalt" /></td>
  50.    </tr>
  51.    <tr>
  52.      <td>CELULAR      </td>
  53.      <td><label for="celular"></label>
  54.      <input type="text" name="celular" id="celular" /></td>
  55.    </tr>
  56.    <tr>
  57.      <td>TELEFONO CASA</td>
  58.      <td><label for="telefonocasa"></label>
  59.      <input type="text" name="telefonocasa" id="telefonocasa" /></td>
  60.    </tr>
  61.    <tr>
  62.      <td>TELEFONO TRABAJO</td>
  63.      <td><label for="telefonotrabajo"></label>
  64.      <input type="text" name="telefonotrabajo" id="telefonotrabajo" /></td>
  65.    </tr>
  66.    <tr>
  67.      <td>F.NACIMIENTO</td>
  68.      <td><input type="date" name="nacimiento" id="nacimiento" /></td>
  69.    </tr>
  70.    <tr>
  71.      <td>GENERO</td>
  72.      <td><label for="genero"></label>
  73.        <select name="genero" id="genero">
  74.          <option value="1">Hombre</option>
  75.          <option value="2">Mujer</option>
  76.      </select></td>
  77.    </tr>
  78.    <tr>
  79.      <td>PAIS </td>
  80.      <td><select name="paisdireccion" id="paisdireccion">
  81.        <option>Alemania</option>
  82.        <option>Argentina</option>
  83.        <option>Autralia</option>
  84.        <option>Bahamas</option>
  85.        <option>Belgica</option>
  86.        <option>Belice</option>
  87.        <option>Bolivia</option>
  88.        <option>Brasil</option>
  89.        <option>Camerun</option>
  90.        <option>Canada</option>
  91.        <option>Chile</option>
  92.        <option>China</option>
  93.        <option>Ciudad del vaticano</option>
  94.        <option>Colombia</option>
  95.        <option>Corea del norte</option>
  96.        <option>Corea del sur</option>
  97.        <option>Costa rica</option>
  98.        <option>Croacia</option>
  99.        <option>Cuba</option>
  100.        <option>Dinamarca</option>
  101.        <option>Ecuador</option>
  102.        <option>Egipto</option>
  103.        <option>El salvador</option>
  104.        <option>Eslovaquia</option>
  105.        <option>España</option>
  106.        <option>Estados Unidos</option>
  107.        <option>Filipinas</option>
  108.        <option>Francia</option>
  109.        <option>Grecia</option>
  110.        <option>Guatemala</option>
  111.        <option>Honduras</option>
  112.        <option>India</option>
  113.        <option>Irak</option>
  114.        <option>Iran</option>
  115.        <option>Irlanda</option>
  116.        <option>Jamaica</option>
  117.        <option>Madagascar</option>
  118.        <option>Montenegro</option>
  119.        <option>Mexico</option>
  120.        <option>Nueva Zelanda</option>
  121.        <option>Peru</option>
  122.        <option>Uruguay</option>
  123.      </select></td>
  124.    </tr>
  125.    <tr>
  126.      <td>ESTADO</td>
  127.      <td><select name="estadonac" id="estadonac">
  128.        <option>Aguascalientes</option>
  129.        <option>Baja California</option>
  130.      </select></td>
  131.    </tr>
  132.    <tr>
  133.      <td>NACIONALIDAD</td>
  134.      <td><select name="nacionalidad" id="nacionalidad">
  135.        <option>mexicano</option>
  136.      </select></td>
  137.    </tr>
  138.    <tr>
  139.      <td>IDENTIDAD</td>
  140.      <td><select name="identidad" id="identidad">
  141.        <option value="1">CURP</option>
  142.        <option value="2">INE</option>
  143.        <option value="3">IMSS</option>
  144.        <option value="4">ISSSTE</option>
  145.        <option value="5">ISSSTECALLI</option>
  146.        <option value="6">CARTILLA</option>
  147.      </select></td>
  148.    </tr>
  149.    <tr>
  150.      <td>FOTO</td>
  151.      <td><label for="foto"></label>
  152.      <input type="text" name="foto" id="foto" /></td>
  153.    </tr>
  154.  </table>
  155.  <p>&nbsp;</p>
  156.  <p>
  157.    <input type="submit" name="Enviar" id="Enviar" value="Enviar" />
  158.  </p>
  159.  <p>&nbsp;</p>
  160. </form>
  161.  
  162. <body background="file:///C:/Users//Desktop/carpetas%20de%20cosas/desarrollo/conacyt2.png">
  163.  
  164.  
  165. </body>
  166. </html>
  167. AQUI HICE LOS POST JUNTO CON EL QUERY:
  168. <?php
  169. if($_POST){
  170. $id=$_POST['id'];
  171. $nombres=$_POST['nombres'];
  172. $paterno=$_POST['paterno'];
  173. $materno=$_POST['materno'];
  174. $id_civil=$_POST['estadocivil'];
  175. $direccion=$_POST['direccion'];
  176. $correop=$_POST['emailPrincipal'];
  177. $correoa=$_POST['emailalt'];
  178. $tcelular=$_POST['celular'];
  179. $tcasa=$_POST['telefonocasa'];
  180. $ttrabajo=$_POST['telefonotrabajo'];
  181. $f_nacimiento=$_POST['nacimiento'];
  182. $genero=$_POST['genero'];
  183. $pais_nacimiento=$_POST['nacionalidad'];
  184. $edo_nacimiento=$_POST['estadonac'];
  185. $nacionalidad=$_POST['nacionalidad'];
  186. $identidad=$_POST['identidad'];
  187. $foto=$_POST['foto'];
  188.  
  189.  
  190.  
  191.  
  192. mysqli_query("INSERT INTO tb_personales (id,nombres,paterno,materno,estadocivil,direccion,,emailPrincipal,emailAlt,tcasa,telefonotrabajo,nacimiento,
  193. genero,pais_nacimiento,estadonac,nacionalidad,identidad,foto) VALUES('" . $id . "','" . $nombres . "','" . $paterno . "','" . $materno. "','" . $ecivil
  194. . "','" . $direccion . "','" . $correop . "','" . $correoa . "','" . $tcelular . "','" . $tcasa . "','" . $ttrabajo . "','" . $f_nacimiento
  195. . "','" . $genero . "','" . $pais_nacimiento . "','" .$edo_nacimiento . "','" . $nacionalidad . "','" . $identidad . "','" . $foto ."',)");
  196.  
  197.  
  198.  
  199.  
  200. }
  201. ?>
  202.  
  203. Y CON ESTE CONECTO A LA BASE DE DATOS:
  204.  
  205. <?php
  206. $conexion=mysqli_connect("localhost","root","","conacyt");
  207. if($conexion)
  208. {
  209.    echo "Se ha conectado correctamente";
  210.  
  211.  
  212.  
  213. }
  214. else{
  215.    echo "No se ha podido coenctar";
  216.  
  217.  
  218.  
  219. }
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  

7  Programación / PHP / error al mandar localhost en: 9 Noviembre 2016, 05:23 am
Buenas comunidad andoo terminando mi proyecto pero me estoy topando con errores y no se por que me marca tengo el html y el php con sus post les muestro estan igual los id que en el post para que agarre en la base de datos pero no entiendo por marca error no se si se deba a que mi apache no ese funcionando pero si puedo entrar a xamp y si me corre el mysql los que estan adentro del arrelgo estan como el id del html los de la izquierda estan igual que a la bd
Código
  1.  
  2. $id=$_POST['id'];
  3. $nombres=$_POST['nombres'];
  4. $paterno=$_POST['paterno'];
  5. $materno=$_POST['materno'];
  6. $id_civil=$_POST['estadocivil'];
  7. $direccion=$_POST['direccion'];
  8. $correop=$_POST['emailPrincipal'];
  9. $correoa=$_POST['emailalt'];
  10. $tcelular=$_POST['celular'];
  11. $tcasa=$_POST['telefonocasa'];
  12. $ttrabajo=$_POST['telefonotrabajo'];
  13. $f_nacimiento=$_POST['nacimiento'];
  14. $genero=$_POST['genero'];
  15. $pais_nacimiento=$_POST['nacionalidad'];
  16. $edo_nacimiento=$_POST['estadonac'];
  17. $nacionalidad=$_POST['nacionalidad'];
  18. $identidad=$_POST['identidad'];
  19. $foto=$_POST['foto'];
  20.  
  21. mysql_query("INSERT INTO tb_personales VALUES ('" . $id . "','" . $nombre . "',''". $paterno. "','". $materno . "','" . $ecivil . "','" . $direccion . "','" . $pais .
  22.         "','" .$correop . "',  '" . $correoa . "','" . $tcelular . "','" .$tcasa . "','" . $ttrabajo . "','" . $f_nacimiento . ",'" . $genero . "','" . $pais_nacimiento . ",'"
  23.         . $edo_nacimiento . ",'" . $nacionalidad . ",'" . $identidad . ",'" . $foto ."',)");
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33. ?>
  34. AQUI EL HTML
  35. [code=html4strict]
  36.  
  37.    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  38.    <html xmlns="http://www.w3.org/1999/xhtml">
  39.    <head>
  40.    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  41.    <title>Documento sin título</title>
  42.    </head>
  43.  
  44.    <body>
  45.    <form id="form1" name="form1" method="post" action="Datospersonales.php">
  46.      <p>&nbsp;</p>
  47.      <p><strong>DATOS PERSONALES </strong>  </p>
  48.      <table width="353" border="0">
  49.        <tr>
  50.          <td>ID</td>
  51.          <td><label for="id"></label>
  52.          <input type="text" name="id" id="id" /></td>
  53.        </tr>
  54.        <tr>
  55.          <td>NOMBRE</td>
  56.          <td><label for="nombres"></label>
  57.          <input type="text" name="nombres" id="nombres" /></td>
  58.        </tr>
  59.        <tr>
  60.          <td>PATERNO</td>
  61.          <td><label for="paterno"></label>
  62.          <input type="text" name="paterno" id="paterno" /></td>
  63.        </tr>
  64.        <tr>
  65.          <td>MATERNO</td>
  66.          <td><label for="materno"></label>
  67.          <input type="text" name="materno" id="materno" /></td>
  68.        </tr>
  69.        <tr>
  70.          <td>ID CIIVIL</td>
  71.          <td><label for="id_civil"></label>
  72.          <input type="text" name="id_civil" id="id_civil" /></td>
  73.        </tr>
  74.        <tr>
  75.          <td>DIRECCION</td>
  76.          <td><label for="direccion"></label>
  77.          <input type="text" name="direccion" id="direccion" /></td>
  78.        </tr>
  79.        <tr>
  80.          <td>EMAIL PRINCIPAL</td>
  81.          <td><label for="emailPrincipal"></label>
  82.          <input type="text" name="emailPrincipal" id="emailPrincipal" /></td>
  83.        </tr>
  84.        <tr>
  85.          <td>EMAIL ALT.</td>
  86.          <td><label for="emailalt"></label>
  87.          <input type="text" name="emailalt" id="emailalt" /></td>
  88.        </tr>
  89.        <tr>
  90.          <td>CELULAR      </td>
  91.          <td><label for="celular"></label>
  92.          <input type="text" name="celular" id="celular" /></td>
  93.        </tr>
  94.        <tr>
  95.          <td>TELEFONO CASA</td>
  96.          <td><label for="telefonocasa"></label>
  97.          <input type="text" name="telefonocasa" id="telefonocasa" /></td>
  98.        </tr>
  99.        <tr>
  100.          <td>TELEFONO TRABAJO</td>
  101.          <td><label for="telefonotrabajo"></label>
  102.          <input type="text" name="telefonotrabajo" id="telefonotrabajo" /></td>
  103.        </tr>
  104.        <tr>
  105.          <td>F.NACIMIENTO</td>
  106.          <td><input type="date" name="nacimiento" id="nacimiento" /></td>
  107.        </tr>
  108.        <tr>
  109.          <td>GENERO</td>
  110.          <td><label for="genero"></label>
  111.            <select name="genero" id="genero">
  112.              <option value="1">Hombre</option>
  113.              <option value="2">Mujer</option>
  114.          </select></td>
  115.        </tr>
  116.        <tr>
  117.          <td>PAIS </td>
  118.          <td><select name="paisdireccion" id="paisdireccion">
  119.            <option>Alemania</option>
  120.            <option>Argentina</option>
  121.            <option>Autralia</option>
  122.            <option>Bahamas</option>
  123.            <option>Belgica</option>
  124.            <option>Belice</option>
  125.            <option>Bolivia</option>
  126.            <option>Brasil</option>
  127.            <option>Camerun</option>
  128.            <option>Canada</option>
  129.            <option>Chile</option>
  130.            <option>China</option>
  131.            <option>Ciudad del vaticano</option>
  132.            <option>Colombia</option>
  133.            <option>Corea del norte</option>
  134.            <option>Corea del sur</option>
  135.            <option>Costa rica</option>
  136.            <option>Croacia</option>
  137.            <option>Cuba</option>
  138.            <option>Dinamarca</option>
  139.            <option>Ecuador</option>
  140.            <option>Egipto</option>
  141.            <option>El salvador</option>
  142.            <option>Eslovaquia</option>
  143.            <option>España</option>
  144.            <option>Estados Unidos</option>
  145.            <option>Filipinas</option>
  146.            <option>Francia</option>
  147.            <option>Grecia</option>
  148.            <option>Guatemala</option>
  149.            <option>Honduras</option>
  150.            <option>India</option>
  151.            <option>Irak</option>
  152.            <option>Iran</option>
  153.            <option>Irlanda</option>
  154.            <option>Jamaica</option>
  155.            <option>Madagascar</option>
  156.            <option>Montenegro</option>
  157.            <option>Mexico</option>
  158.            <option>Nueva Zelanda</option>
  159.            <option>Peru</option>
  160.            <option>Uruguay</option>
  161.          </select></td>
  162.        </tr>
  163.        <tr>
  164.          <td>ESTADO</td>
  165.          <td><select name="estadonac" id="estadonac">
  166.            <option>Aguascalientes</option>
  167.            <option>Baja California</option>
  168.          </select></td>
  169.        </tr>
  170.        <tr>
  171.          <td>NACIONALIDAD</td>
  172.          <td><select name="nacionalidad" id="nacionalidad">
  173.            <option>mexicano</option>
  174.          </select></td>
  175.        </tr>
  176.        <tr>
  177.          <td>IDENTIDAD</td>
  178.          <td><select name="identidad" id="identidad">
  179.            <option value="1">CURP</option>
  180.            <option value="2">INE</option>
  181.            <option value="3">IMSS</option>
  182.            <option value="4">ISSSTE</option>
  183.            <option value="5">ISSSTECALLI</option>
  184.            <option value="6">CARTILLA</option>
  185.          </select></td>
  186.        </tr>
  187.        <tr>
  188.          <td>FOTO</td>
  189.          <td><label for="foto"></label>
  190.          <input type="text" name="foto" id="foto" /></td>
  191.        </tr>
  192.      </table>
  193.      <p>&nbsp;</p>
  194.      <p>
  195.        <input type="submit" name="Enviar" id="Enviar" value="Enviar" />
  196.      </p>
  197.      <p>&nbsp;</p>
  198.    </form>
  199.  
  200.    <body background="file:///C:/Users/alejandro%20ramon/Desktop/carpetas%20de%20cosas/desarrollo/conacyt2.png">
  201.  
  202.  
  203.    </body>
  204.    </html>
  205.  
  206.    AL mandar localhost/Datospersonales.php marca error
  207.  
  208.    Notice: Undefined index: id in C:\xampp\htdocs\Datospersonales.php on line 2
  209.  
  210.    Notice: Undefined index: nombres in C:\xampp\htdocs\Datospersonales.php on line 3
  211.  
  212.    Notice: Undefined index: paterno in C:\xampp\htdocs\Datospersonales.php on line 4
  213.  
  214.    Notice: Undefined index: materno in C:\xampp\htdocs\Datospersonales.php on line 5
  215.  
  216.    Notice: Undefined index: estadocivil in C:\xampp\htdocs\Datospersonales.php on line 6
  217.  
  218.    Notice: Undefined index: direccion in C:\xampp\htdocs\Datospersonales.php on line 7
  219.  
  220.    Notice: Undefined index: emailPrincipal in C:\xampp\htdocs\Datospersonales.php on line 8
  221.  
  222.    Notice: Undefined index: emailalt in C:\xampp\htdocs\Datospersonales.php on line 9
  223.  
  224.    Notice: Undefined index: celular in C:\xampp\htdocs\Datospersonales.php on line 10
  225.  
  226.    Notice: Undefined index: telefonocasa in C:\xampp\htdocs\Datospersonales.php on line 11
  227.  
  228.    Notice: Undefined index: telefonotrabajo in C:\xampp\htdocs\Datospersonales.php on line 12
  229.  
  230.    Notice: Undefined index: nacimiento in C:\xampp\htdocs\Datospersonales.php on line 13
  231.  
  232.    Notice: Undefined index: genero in C:\xampp\htdocs\Datospersonales.php on line 14
  233.  
  234.    Notice: Undefined index: nacionalidad in C:\xampp\htdocs\Datospersonales.php on line 15
  235.  
  236.    Notice: Undefined index: estadonac in C:\xampp\htdocs\Datospersonales.php on line 16
  237.  
  238.    Notice: Undefined index: nacionalidad in C:\xampp\htdocs\Datospersonales.php on line 17
  239.  
  240.    Notice: Undefined index: identidad in C:\xampp\htdocs\Datospersonales.php on line 18
  241.  
  242.    Notice: Undefined index: foto in C:\xampp\htdocs\Datospersonales.php on line 19
  243.  
  244.    Notice: Undefined variable: nombre in C:\xampp\htdocs\Datospersonales.php on line 21
  245.  
  246.    Notice: Undefined variable: ecivil in C:\xampp\htdocs\Datospersonales.php on line 21
  247.  
  248.    Notice: Undefined variable: pais in C:\xampp\htdocs\Datospersonales.php on line 21
  249.  
  250.  
  251.  
  252.  
  253.  
  254. no se que se deba si los id concuerdan con el html y la bd y si las cambio sigue dando error no se que este pasando
  255. Saludos
  256.  
  257.  
  258.  



[/code]
8  Programación / Bases de Datos / problema con base de datos en: 18 Octubre 2016, 05:59 am
Buenas comunidad ando intentando hacer una bd pero me esta arrojando un error y por mas que le busco no encuentro la falla es es el codigo en msql quiero que el id se tipo unique pero no me deja o primary pero marca error ya le cambie a null y sigue marcando error
CREATE TABLE `proyecto`.`usuarios` ( `id` INT(10) NOT NULL AUTO_INCREMENT , `username` VARCHAR(50) NOT NULL , `password` VARCHAR(50) NOT NULL , `email` VARCHAR(100) NOT NULL , `last_login` INT(50) NOT NULL , `sec_question` INT(100) NOT NULL , `sec_answer` INT(50) NOT NULL , `role` ENUM(2) NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB;

El error me dice
#1604 FOR THE RIGHT SYNTAX TO USE NEAR'2)NOT NULL,PRIMARY KEY(ID) ENGINE=INNODB' ATLINE 1

Saludos
9  Programación / Java / duda sobre un error en: 5 Mayo 2016, 09:01 am
Buenas comunidad ando haciendo mi proyecto final sobre alquiler de peliculas pero tengo una duda sobre el error bueno ya tengo casi todo hecho codigo y grafico pero se tiene que enlazar a una base de datos para que salgan todas las  peliculas que quiero que muestre el error es la clase maindb linea 27 y 37 la del 27es del metodo obtener no entiendo por que da error y la 37 problemas con el cathc

Código
  1. import java.util.List;
  2. import java.util.logging.Level;
  3. import java.util.logging.Logger;
  4.  
  5. /**
  6.  *
  7.  * @author
  8.  */
  9. public class maindb {
  10.  
  11.  
  12.  
  13.    /**
  14.      * @param args the command line arguments
  15.      */
  16.    public static void main(String[] args) {
  17.        Pelicula item = new Pelicula(15,"Pantalon azul",700);
  18.        Peliculas bd = new Peliculas();
  19.  
  20.        try {
  21.            //bd.guardarProducto(BaseDatos.obtener(), item);
  22.            //item = bd.recuperarPorId(BaseDatos.obtener(), 100);
  23.            //System.out.println("Descripcion: " + item.getDescripcion());
  24.            //System.out.println("Precio: " + item.getPrecio());
  25.            //bd.eliminarPorId(BaseDatos.obtener(), 500);
  26.            List<Pelicula> lista = bd.recuperarTodas(Pelicula.obtener());
  27.  
  28.            for(int i=0; i<lista.size(); i++){
  29.                System.out.println("\nID: " + lista.get(i).getId());
  30.                System.out.println("Nombre: " + lista.get(i).getNombre());
  31.                System.out.println("Precio: " + lista.get(i).getPrecio());
  32.            }
  33.            Peliculas.cerrar();
  34.        } catch (ClassNotFoundException ex) {
  35.            Logger.getLogger(maindb.class.getName()).log(Level.SEVERE, null, ex);
  36.        }
  37.    }
  38.  
  39. }
  40.  
  41.  
Código
  1. java.sql.ResultSet;
  2. import java.sql.SQLException;
  3. import java.util.ArrayList;
  4. import java.util.List;
  5.  
  6. /**
  7.  *
  8.  * @author
  9.  */
  10. public class bd {
  11.  
  12. /*
  13.  * To change this license header, choose License Headers in Project Properties.
  14.  * To change this template file, choose Tools | Templates
  15.  * and open the template in the editor.
  16.  */
  17.  
  18. /**
  19.  *
  20.  * @author
  21.  */
  22.  
  23.    private static Connection cnx = null;
  24.    private String tabla = "pelicula";
  25.    private String bd = "videoclub";
  26.  
  27.    public static Connection obtener() throws SQLException, ClassNotFoundException {
  28.        if (cnx == null) {
  29.            try {
  30.                Class.forName("com.mysql.jdbc.Driver");
  31.                cnx = DriverManager.getConnection("jdbc:mysql://localhost/videoclub", "root", "");
  32.            } catch (SQLException ex) {
  33.                throw new SQLException(ex);
  34.            } catch (ClassNotFoundException ex) {
  35.                throw new ClassCastException(ex.getMessage());
  36.            }
  37.        }
  38.        return cnx;
  39.    }
  40.  
  41.    public static void cerrar() throws SQLException {
  42.        if (cnx != null) {
  43.            cnx.close();
  44.        }
  45.    }
  46.  
  47.    public void guardarProducto(Connection conexion, Pelicula item) throws SQLException{
  48.      try{
  49.         PreparedStatement consulta = null;
  50.         if(item.getId() > 0){
  51.            consulta = conexion.prepareStatement("INSERT INTO " + this.tabla + "(id, descripcion, precio) VALUES(?, ?, ?)");
  52.            consulta.setInt(1, item.getId());
  53.            consulta.setString(2, item.getnombre());
  54.            consulta.setFloat(3, item.getPrecio());
  55.         }
  56.         /*
  57.          else{
  58.             consulta = conexion.prepareStatement("UPDATE " + this.tabla + " SET titulo = ?, descripcion = ?, nivel_de_prioridad = ? WHERE id_tarea = ?");
  59.             consulta.setString(1, tarea.getTitulo());
  60.             consulta.setString(2, tarea.getDescripcion());
  61.             consulta.setInt(3, tarea.getNivel_de_prioridad());
  62.             consulta.setInt(4, tarea.getId_tarea());
  63.          } */
  64.         consulta.executeUpdate();
  65.      }catch(SQLException ex){
  66.         throw new SQLException(ex);
  67.      }
  68.   }
  69.  
  70.   public Pelicula recuperarPorId(Connection conexion, int id) throws SQLException {
  71.      Pelicula p = null;
  72.      try{
  73.         PreparedStatement consulta = conexion.prepareStatement("SELECT descripcion, precio FROM " + this.tabla + " WHERE id = ?" );
  74.         consulta.setInt(1, id);
  75.         ResultSet resultado = consulta.executeQuery();
  76.         while(resultado.next()){
  77.            p = new Pelicula(id, resultado.getString("nombre"), resultado.getFloat("precio"));
  78.         }
  79.      }catch(SQLException ex){
  80.         throw new SQLException(ex);
  81.      }
  82.      return p;
  83.   }
  84.  
  85.   public void eliminarPorId(Connection conexion,  int id) throws SQLException{
  86.      try{
  87.         PreparedStatement consulta = conexion.prepareStatement("DELETE FROM " + this.tabla + " WHERE id = ?");
  88.         consulta.setInt(1, id);
  89.         consulta.executeUpdate();
  90.      }catch(SQLException ex){
  91.         throw new SQLException(ex);
  92.      }
  93.   }
  94.  
  95.   public List<Pelicula> recuperarTodas(Connection conexion) throws SQLException{
  96.      List<Pelicula> lista = new ArrayList<>();
  97.      try{
  98.         PreparedStatement consulta = conexion.prepareStatement("SELECT id, descripcion, precio FROM " + this.tabla + " ORDER BY id");
  99.         ResultSet resultado = consulta.executeQuery();
  100.         while(resultado.next()){
  101.            lista.add(new Pelicula(resultado.getInt("id"), resultado.getString("nombre"), resultado.getFloat("precio")));
  102.         }
  103.      }catch(SQLException ex){
  104.         throw new SQLException(ex);
  105.      }
  106.      return lista;
  107.   }
  108.  
  109. }
  110.  
  111.  

Código
  1. import java.util.Calendar;
  2. import java.util.Scanner;
  3. import javax.swing.JOptionPane;
  4.  
  5. /**
  6.  *
  7.  * @author
  8.  */
  9. public class Peliculas extends javax.swing.JFrame {
  10.  
  11.    public String getObtener() {
  12.        return obtener;
  13.    }
  14.  
  15.    public void setObtener(String obtener) {
  16.        this.obtener = obtener;
  17.    }
  18.    String obtener;
  19.  
  20.    static void cerrar() {
  21.        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  22.    }
  23.  
  24.    /**
  25.      * Creates new form Peliculas
  26.      */
  27.    public Peliculas() {
  28.        initComponents();
  29.    }
  30.  
  31.    /**
  32.      * This method is called from within the constructor to initialize the form.
  33.      * WARNING: Do NOT modify this code. The content of this method is always
  34.      * regenerated by the Form Editor.
  35.      */
  36.    @SuppressWarnings("unchecked")
  37.    // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
  38.    private void initComponents() {
  39.  
  40.        Categorias = new javax.swing.JPanel();
  41.        jTextField1 = new javax.swing.JTextField();
  42.        jButton2 = new javax.swing.JButton();
  43.        jLabel1 = new javax.swing.JLabel();
  44.        jLabel2 = new javax.swing.JLabel();
  45.        jButton3 = new javax.swing.JButton();
  46.        jButton4 = new javax.swing.JButton();
  47.        jButton5 = new javax.swing.JButton();
  48.        jButton6 = new javax.swing.JButton();
  49.        jButton7 = new javax.swing.JButton();
  50.        jButton8 = new javax.swing.JButton();
  51.        jButton9 = new javax.swing.JButton();
  52.        jButton10 = new javax.swing.JButton();
  53.        Buscar = new javax.swing.JComboBox();
  54.        jTextField2 = new javax.swing.JTextField();
  55.        jTextField5 = new javax.swing.JTextField();
  56.        jTextField6 = new javax.swing.JTextField();
  57.        jButton1 = new javax.swing.JButton();
  58.        jButton11 = new javax.swing.JButton();
  59.        jButton12 = new javax.swing.JButton();
  60.        jToggleButton1 = new javax.swing.JToggleButton();
  61.  
  62.        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  63.        setBackground(new java.awt.Color(0, 0, 255));
  64.  
  65.        Categorias.setBackground(new java.awt.Color(0, 51, 204));
  66.        Categorias.setForeground(new java.awt.Color(0, 0, 204));
  67.        Categorias.setToolTipText("");
  68.        Categorias.setAutoscrolls(true);
  69.        Categorias.setName("Categorias"); // NOI18N
  70.  
  71.        jTextField1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
  72.        jTextField1.setText("BUSCAR PELICULAS");
  73.        jTextField1.addActionListener(new java.awt.event.ActionListener() {
  74.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  75.                jTextField1ActionPerformed(evt);
  76.            }
  77.        });
  78.  
  79.        jButton2.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  80.        jButton2.setText("SELECCIONAR");
  81.        jButton2.addActionListener(new java.awt.event.ActionListener() {
  82.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  83.                jButton2ActionPerformed(evt);
  84.            }
  85.        });
  86.  
  87.        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
  88.        jLabel1.setText("GENEROS");
  89.  
  90.        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
  91.        jLabel2.setForeground(new java.awt.Color(0, 0, 51));
  92.        jLabel2.setText("PELICULA");
  93.  
  94.        jButton3.setText("ACCION");
  95.        jButton3.addActionListener(new java.awt.event.ActionListener() {
  96.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  97.                jButton3ActionPerformed(evt);
  98.            }
  99.        });
  100.  
  101.        jButton4.setText("Ciencia Ficcion");
  102.        jButton4.addActionListener(new java.awt.event.ActionListener() {
  103.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  104.                jButton4ActionPerformed(evt);
  105.            }
  106.        });
  107.  
  108.        jButton5.setText("Aventuras");
  109.        jButton5.addActionListener(new java.awt.event.ActionListener() {
  110.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  111.                jButton5ActionPerformed(evt);
  112.            }
  113.        });
  114.  
  115.        jButton6.setText("Animacion");
  116.        jButton6.addActionListener(new java.awt.event.ActionListener() {
  117.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  118.                jButton6ActionPerformed(evt);
  119.            }
  120.        });
  121.  
  122.        jButton7.setText("Comedias");
  123.        jButton7.addActionListener(new java.awt.event.ActionListener() {
  124.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  125.                jButton7ActionPerformed(evt);
  126.            }
  127.        });
  128.  
  129.        jButton8.setText("Drama");
  130.        jButton8.addActionListener(new java.awt.event.ActionListener() {
  131.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  132.                jButton8ActionPerformed(evt);
  133.            }
  134.        });
  135.  
  136.        jButton9.setText("Terror");
  137.        jButton9.addActionListener(new java.awt.event.ActionListener() {
  138.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  139.                jButton9ActionPerformed(evt);
  140.            }
  141.        });
  142.  
  143.        jButton10.setText("Suspenso");
  144.        jButton10.addActionListener(new java.awt.event.ActionListener() {
  145.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  146.                jButton10ActionPerformed(evt);
  147.            }
  148.        });
  149.  
  150.        Buscar.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
  151.        Buscar.setSelectedItem(Buscar);
  152.        Buscar.addActionListener(new java.awt.event.ActionListener() {
  153.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  154.                BuscarActionPerformed(evt);
  155.            }
  156.        });
  157.  
  158.        javax.swing.GroupLayout CategoriasLayout = new javax.swing.GroupLayout(Categorias);
  159.        Categorias.setLayout(CategoriasLayout);
  160.        CategoriasLayout.setHorizontalGroup(
  161.            CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  162.            .addGroup(CategoriasLayout.createSequentialGroup()
  163.                .addContainerGap()
  164.                .addGroup(CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  165.                    .addGroup(CategoriasLayout.createSequentialGroup()
  166.                        .addGroup(CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
  167.                            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  168.                            .addComponent(Buscar, 0, 73, Short.MAX_VALUE))
  169.                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 330, Short.MAX_VALUE)
  170.                        .addGroup(CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  171.                            .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
  172.                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CategoriasLayout.createSequentialGroup()
  173.                                .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
  174.                                .addGap(24, 24, 24)))
  175.                        .addGap(41, 41, 41))
  176.                    .addGroup(CategoriasLayout.createSequentialGroup()
  177.                        .addGroup(CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  178.                            .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)
  179.                            .addGroup(CategoriasLayout.createSequentialGroup()
  180.                                .addGroup(CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
  181.                                    .addComponent(jButton3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  182.                                    .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE)
  183.                                    .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  184.                                    .addComponent(jButton6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  185.                                .addGap(86, 86, 86)
  186.                                .addGroup(CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
  187.                                    .addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  188.                                    .addComponent(jButton7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  189.                                    .addComponent(jButton8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  190.                                    .addComponent(jButton10, javax.swing.GroupLayout.DEFAULT_SIZE, 121, Short.MAX_VALUE))))
  191.                        .addGap(0, 236, Short.MAX_VALUE))))
  192.        );
  193.        CategoriasLayout.setVerticalGroup(
  194.            CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  195.            .addGroup(CategoriasLayout.createSequentialGroup()
  196.                .addGap(28, 28, 28)
  197.                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  198.                .addGap(18, 18, 18)
  199.                .addGroup(CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  200.                    .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING)
  201.                    .addComponent(jLabel1))
  202.                .addGroup(CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  203.                    .addGroup(CategoriasLayout.createSequentialGroup()
  204.                        .addGap(18, 18, 18)
  205.                        .addComponent(jButton2))
  206.                    .addGroup(CategoriasLayout.createSequentialGroup()
  207.                        .addGap(10, 10, 10)
  208.                        .addComponent(Buscar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
  209.                .addGap(13, 13, 13)
  210.                .addGroup(CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  211.                    .addComponent(jButton3)
  212.                    .addGroup(CategoriasLayout.createSequentialGroup()
  213.                        .addGap(9, 9, 9)
  214.                        .addComponent(jButton7)))
  215.                .addGap(18, 18, 18)
  216.                .addGroup(CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  217.                    .addGroup(CategoriasLayout.createSequentialGroup()
  218.                        .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
  219.                        .addGap(32, 32, 32)
  220.                        .addComponent(jButton9))
  221.                    .addGroup(CategoriasLayout.createSequentialGroup()
  222.                        .addComponent(jButton4)
  223.                        .addGap(40, 40, 40)
  224.                        .addComponent(jButton5)))
  225.                .addGap(30, 30, 30)
  226.                .addGroup(CategoriasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  227.                    .addComponent(jButton10)
  228.                    .addComponent(jButton6))
  229.                .addGap(0, 51, Short.MAX_VALUE))
  230.        );
  231.  
  232.        jTextField2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
  233.        jTextField2.setForeground(new java.awt.Color(0, 0, 204));
  234.        jTextField2.setText("RENTAS");
  235.        jTextField2.addActionListener(new java.awt.event.ActionListener() {
  236.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  237.                jTextField2ActionPerformed(evt);
  238.            }
  239.        });
  240.  
  241.        jTextField5.setText("Total a pagar");
  242.  
  243.        jTextField6.setText("15");
  244.  
  245.        jButton1.setText("VER FECHA DE RENTAS ABRIL");
  246.        jButton1.addActionListener(new java.awt.event.ActionListener() {
  247.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  248.                jButton1ActionPerformed(evt);
  249.            }
  250.        });
  251.  
  252.        jButton11.setText("VER FECHA DE ENTREGAS ABRIL");
  253.        jButton11.addActionListener(new java.awt.event.ActionListener() {
  254.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  255.                jButton11ActionPerformed(evt);
  256.            }
  257.        });
  258.  
  259.        jButton12.setText("VER FECHA DE RENTAS MAYO");
  260.        jButton12.addActionListener(new java.awt.event.ActionListener() {
  261.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  262.                jButton12ActionPerformed(evt);
  263.            }
  264.        });
  265.  
  266.        jToggleButton1.setText("VER FECHAS DE ENTREGA MAYO");
  267.        jToggleButton1.addActionListener(new java.awt.event.ActionListener() {
  268.            public void actionPerformed(java.awt.event.ActionEvent evt) {
  269.                jToggleButton1ActionPerformed(evt);
  270.            }
  271.        });
  272.  
  273.        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  274.        getContentPane().setLayout(layout);
  275.        layout.setHorizontalGroup(
  276.            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  277.            .addGroup(layout.createSequentialGroup()
  278.                .addComponent(Categorias, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  279.                .addGap(0, 9, Short.MAX_VALUE))
  280.            .addGroup(layout.createSequentialGroup()
  281.                .addGap(22, 22, 22)
  282.                .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
  283.                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  284.                .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
  285.                .addGap(85, 85, 85))
  286.            .addGroup(layout.createSequentialGroup()
  287.                .addContainerGap()
  288.                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
  289.                    .addComponent(jToggleButton1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 210, Short.MAX_VALUE)
  290.                    .addComponent(jButton1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  291.                    .addComponent(jButton11, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  292.                    .addComponent(jButton12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  293.                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  294.                .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  295.                .addGap(97, 97, 97))
  296.        );
  297.        layout.setVerticalGroup(
  298.            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  299.            .addGroup(layout.createSequentialGroup()
  300.                .addComponent(Categorias, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  301.                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  302.                    .addGroup(layout.createSequentialGroup()
  303.                        .addGap(135, 135, 135)
  304.                        .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  305.                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  306.                        .addComponent(jButton1)
  307.                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  308.                        .addComponent(jButton11))
  309.                    .addGroup(layout.createSequentialGroup()
  310.                        .addGap(142, 142, 142)
  311.                        .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  312.                        .addGap(18, 18, 18)
  313.                        .addComponent(jTextField6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
  314.                .addGap(18, 18, 18)
  315.                .addComponent(jButton12)
  316.                .addGap(18, 18, 18)
  317.                .addComponent(jToggleButton1)
  318.                .addGap(0, 122, Short.MAX_VALUE))
  319.        );
  320.  
  321.        pack();
  322.    }// </editor-fold>                        
  323.  
  324.    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {                                            
  325.        // TODO add your handling code here:
  326.  
  327.  
  328.  
  329.  
  330.  
  331.        String peliculas[]= new String[100];
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.    }                                          
  344.  
  345.    private void jTextField2ActionPerformed(java.awt.event.ActionEvent evt) {                                            
  346.        // TODO add your handling code here:
  347.  
  348.  
  349.    }                                          
  350.  
  351.    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  352.        // TODO add your handling code here:
  353.        String peliculasdeaccion[]= {"Capitan America Civil War","Batman vs Superman",
  354.            "Rapido y Furioso 5","Terremoto en los angeles","Termintaor Genesis","Star wars 2015",
  355.               "Los vengadores la era de ultron","Mision Imposible 2015","Hombre Hormiga","Black hat"        
  356.        };
  357.        for(int x = 0;x<peliculasdeaccion.length; x++){
  358.            System.out.println(peliculasdeaccion[x]);
  359.  
  360.  
  361.    }                                        
  362.    }
  363.    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  364.        // TODO add your handling code here:
  365.        String peliculascf[]={"Los juegos del hambre sinsajo","The Martian","Insurgente","Chapie","Mad Max", "\n"
  366.                +"El destino de Jupiter", "Area 51" ,"La rebeleion de Atlas" ,"Halo" ,"Turbo kid" ,"Los pro"};
  367.        for(int x = 0;x<peliculascf.length; x++){
  368.            System.out.println(peliculascf[x]);
  369.  
  370.        }
  371.    }                                        
  372.  
  373.    private void BuscarActionPerformed(java.awt.event.ActionEvent evt) {                                      
  374.        // TODO add your handling code here:
  375.    }                                      
  376.  
  377.    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  378.        // TODO add your handling code here:
  379.        String peliculasaventuras[]={"Alien el octavo pasajero","Desterrado","Expediente warmen","\n"
  380.                + "Jurasic world", "\n"
  381.                +  "Vacaciones","Start trek","Xmen Apocalipsis","Dragon ball z resurrecion de frezer","\n"
  382.                +  "Warcraft el origen" ,"Un espia y medio"};
  383.        for(int x = 0; x<peliculasaventuras.length; x++){
  384.            System.out.println(peliculasaventuras[x]);
  385.  
  386.        }
  387.  
  388.    }                                        
  389.  
  390.    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  391. // TODO add your handling code here:
  392.        String peliculasdeanimacion[]={"Minions","Home","Hotel transilvania","Carlitos y Snoopy","\n"
  393.                +  "La oveja shaun","Alvin y las ardillas","Pixeles","Strange Magic"};
  394.        for(int x =0; x<peliculasdeanimacion.length; x++){
  395.            System.out.println(peliculasdeanimacion[x]);
  396.  
  397.        }
  398.    }                                        
  399.  
  400.    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  401.        // TODO add your handling code here:
  402.        String comedias[]={"Como acabar sin tu jefe2","Perdiendo el norte" ,"La fiesta de despedida","\n"
  403.               + "Superpoli en las Vegas","Hipocrates","Negocios con resaca","Los insolitos peces gato"
  404.                +  "Espias","Rey gitano","Ted 2"
  405.        };
  406.        for(int x =0; x<comedias.length; x++){
  407.            System.out.println(comedias[x]);
  408.        }  
  409.    }                                        
  410.  
  411.    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  412.        // TODO add your handling code here:
  413.        String drama[]={"Frio en julio","Descifrando enigma","Whiplash","Desierto" ,"Demolicion","\n"
  414.        +  "Bosque de karadima","Enemigo invisible","Remeber","La ultima ola","Trumbo","La gran apuesta"};
  415.        for(int x =0; x<drama.length; x++){
  416.            System.out.println(drama[x]);
  417.        }
  418.  
  419.    }                                        
  420.  
  421.    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  422.        // TODO add your handling code here:
  423.        String terror[]={"La cumbre escarlata","Paranormal activyty 5","Sinister","Poltergeist","\n"
  424.            +  "La bruja","Los hijos del diablo","La visita","Demoniaco","Cuentos de halloween"};
  425.        for(int x =0; x<terror.length; x++){
  426.            System.out.println(terror[x]);
  427.        }
  428.    }                                        
  429.  
  430.    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {                                          
  431.        // TODO add your handling code here:
  432.        String suspensos[]={"El regalo","Obsesion","El clan","El puente de los espias" ,"Mision imposible","\n"
  433.        +"La maldicion de charlie","Bus 657","Los jefes","Los intrusos","Caza el asesino"};
  434.        for(int x = 0; x<suspensos.length; x++){
  435.            System.out.println(suspensos[x]);
  436.  
  437.        }
  438.  
  439.    }                                        
  440.  
  441.    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  442.        // TODO add your handling code here:
  443.        String s = JOptionPane.showInputDialog("Ingrese el nombre de la pelicula que desea rentar");
  444.        JOptionPane.showMessageDialog(null, "El precio de la renta es de 15pesos");
  445.  
  446.  
  447.  
  448.  
  449.    }                                        
  450.  
  451.    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
  452.        // TODO add your handling code here:
  453.        String rentasabril[]={"09 a las 22:30","10 a las 20:00" ,"11 a las 8:30","\n"
  454.        +"11 a las 5:30" ,"13 a las 20:00" ,"13 a las 21:45" ,"14 a las 20:00","\n"
  455.        +"14 a las 9:15","15 a las 20:20","20 a las 18:20" ,"25 a las 22:00" ,"30 a las 20:00"};
  456.        for(int x = 0; x<rentasabril.length; x++){
  457.            System.out.println(rentasabril[x]);
  458.  
  459.        }
  460.  
  461.    }                                        
  462.  
  463.    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {                                          
  464.        // TODO add your handling code here:
  465.        String rentasmayo[]={"05 a las 22:30","08 a las 21:45","10 a las 20:25","\n"
  466.        +"12 a las 21:45" ,"13 a las 18:45" ,"14 a las 22:00", "14 a las 23:15", "\n"
  467.        +"15 a las 20:00" ,"18 a las 19:00" ,"18 a las 20:00" ,"21 a las 17:00" ,"24 alas 20:15","\n"
  468.        +"28 a las 22:08","30 a las 23:45"};
  469.        for(int x=0; x<rentasmayo.length; x++){
  470.            System.out.println(rentasmayo[x]);
  471.  
  472.        }
  473.    }                                        
  474.  
  475.    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {                                          
  476.        // TODO add your handling code here:
  477.        String entregasabril[]={"10 a las 20:00" ,"11 a las  20:05" ,"13 a las 22:30 ","\n"
  478.        + "13 a las 5:45" ,"15 a las  20:08" ,"15 a las  23:05" ,"15 a las  23:45" , "\n"
  479.                + "15 a las 9:45" , "16 a las  22:05" ,"21 a las  18:45" , "26 a las 22:05","\n"
  480.                +"31 a las 23:50"
  481.        };
  482.        for(int x = 0; x<entregasabril.length; x++){
  483.            System.out.println(entregasabril[x]);
  484.        }
  485.  
  486.    }                                        
  487.  
  488.    private void jToggleButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                              
  489.        // TODO add your handling code here:
  490.        String entregasmayo[]={"06 a las 15:50" ,"10 a las  17:00" ,"11 a las  17:55","\n"
  491.        +"13 a las 20:00" ,"15 a las 21:15" ,"15 a las  22:00" ,"17 a las  18:25", "\n"
  492.        +"19 a las 22:20" ,"22 a las  18:05" ,"25 a  las  20:00" , "29 a las  20:05", "\n"
  493.         +"01 a las  17:15"};
  494.        for(int x=0; x<entregasmayo.length; x++){
  495.            System.out.print(entregasmayo[x]);
  496.        }
  497.  
  498.    }                                              
  499.  
  500.    /**
  501.      * @param args the command line arguments
  502.      */
  503.    public static void main(String args[]) {
  504.        /* Set the Nimbus look and feel */
  505.        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
  506.        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
  507.          * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
  508.          */
  509.        try {
  510.            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
  511.                if ("Nimbus".equals(info.getName())) {
  512.                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
  513.                    break;
  514.                }
  515.            }
  516.        } catch (ClassNotFoundException ex) {
  517.            java.util.logging.Logger.getLogger(Peliculas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  518.        } catch (InstantiationException ex) {
  519.            java.util.logging.Logger.getLogger(Peliculas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  520.        } catch (IllegalAccessException ex) {
  521.            java.util.logging.Logger.getLogger(Peliculas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  522.        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
  523.            java.util.logging.Logger.getLogger(Peliculas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
  524.        }
  525.        //</editor-fold>
  526.  
  527.        /* Create and display the form */
  528.        java.awt.EventQueue.invokeLater(new Runnable() {
  529.            public void run() {
  530.                new Peliculas().setVisible(true);
  531.            }
  532.        });
  533.    }
  534.    // Variables declaration - do not modify                    
  535.    private javax.swing.JComboBox Buscar;
  536.    private javax.swing.JPanel Categorias;
  537.    private javax.swing.JButton jButton1;
  538.    private javax.swing.JButton jButton10;
  539.    private javax.swing.JButton jButton11;
  540.    private javax.swing.JButton jButton12;
  541.    private javax.swing.JButton jButton2;
  542.    private javax.swing.JButton jButton3;
  543.    private javax.swing.JButton jButton4;
  544.    private javax.swing.JButton jButton5;
  545.    private javax.swing.JButton jButton6;
  546.    private javax.swing.JButton jButton7;
  547.    private javax.swing.JButton jButton8;
  548.    private javax.swing.JButton jButton9;
  549.    private javax.swing.JLabel jLabel1;
  550.    private javax.swing.JLabel jLabel2;
  551.    private javax.swing.JTextField jTextField1;
  552.    private javax.swing.JTextField jTextField2;
  553.    private javax.swing.JTextField jTextField5;
  554.    private javax.swing.JTextField jTextField6;
  555.    private javax.swing.JToggleButton jToggleButton1;
  556.    // End of variables declaration                  
  557.  
  558.    String getId() {
  559.        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  560.    }
  561.  
  562.    String getPrecio() {
  563.        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  564.    }
  565.  
  566.    String getNombre() {
  567.        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  568.    }
  569. }
  570.  
  571.  
Saludos
10  Programación / Bases de Datos / Problema con wamp en: 29 Enero 2016, 09:19 am
Bueno les comento lo que pasa es que ya llevo dias intentando hacer que mi wamp se pongan en verde pero no lo puedo lograr se queda en rojo cuando pongo esto http://localhost/www/Cursophp

Not Found

The requested URL /www/Cursophp was not found on this server.

Apache/2.2.4 (Win32) PHP/5.2.3 Server at localhost Port 80

 y ya busque en internet lo que puede ser y ya hice la mayoria de lo que me viene y deja de funcionar no puedo acceder al local host lo quiero para un curso de base de datos de php con mysql ya cambie los puertos que me habian dicho en el log al 8080 tambien le intente con el 81 y sigue el problema me dijieron que era el iss por que ocupa el puerto 80 pero en mi windows7 no me sale la opcion de entrar a el como en otros y ya no se que hacer tambien desactive mi firewall y nada cerre el skype y tampoco nada bueno parece que ando de mala suerte jejeje no se si alguien sepa que pasa se lo agradeceria ya que me urge tomar ese curso de base de datos


Saludos
Páginas: [1] 2 3
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines