Ver Mensaje Individual
  #8 (permalink)  
Antiguo 22/01/2009, 09:48
calebgarcia
 
Fecha de Ingreso: enero-2009
Mensajes: 13
Antigüedad: 15 años, 3 meses
Puntos: 0
Exclamación convoco a los mejores programadores para resolver mi sistema de libros ya no puedomas

convoco a los mejores programadores para resolver mi sistema de libros ya no puedomas


que tal amigos , la verdad no osy bueno programando. pero necesito acabar este sistemas.

ya casi lo tengo terminado solo me falta queme muestre los resultados de mi consulta pero nada ayuda les paso el codigo

-------------------------------busqueda--------------------------
Código php:
Ver original
  1. <?php  
  2.      
  3.       $conexion = mysql_connect("localhost","*****","********");
  4.     mysql_select_db("xalaporg_canacoxa",$conexion);
  5.    
  6.     $sSQL="Select Area From contenido Order By Area";
  7.   $result=mysql_query($sSQL);
  8.    
  9.  
  10. ?>
  11.  
  12. <?php while ($row=mysql_fetch_array($result)){?>
  13. <option value="<?php echo $row["Area"];?>" selected><?php echo $row["Area"];?>
  14. </option>
  15. <?php } ?>
  16.  
  17.  
  18. ----------------resultados------------------------------------
  19.  
  20.  
  21.  <?php  
  22. $var1=$_POST["textobusqueda"];
  23. $Area=$_POST["Area"];
  24. $radio= $_POST["tipo"];
  25. $resp=$_POST["respuesta"];
  26.  
  27.     $conexion = mysql_connect("localhost","******","**********");
  28.     mysql_select_db("xalaporg_canacoxa",$conexion);
  29.    
  30.  
  31.  
  32.      
  33. if ($radio == "AUTOR" AND $resp=="SI")
  34. $result = "SELECT * FROM  Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from WHERE AUTOR='$radio' AND Area='$Area'";
  35. $result= mysql_db_query ("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where AUTOR='$radio' AND Area='$Area'");
  36.  
  37.  
  38.  
  39. if ($radio == "AUTOR" AND $resp=="NO")
  40. $result=mysql_select_db("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where AUTOR='$radio' AND Area='$var1'");
  41.  
  42.  
  43.    
  44. if ($radio == "TITULO" AND $resp=="SI")
  45. $result=mysql_select_db("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where TITULO='$radio' AND Area='$Area'");
  46.  
  47. if ($radio == "TITULO" AND $resp=="NO")
  48. $result=mysql_select_db("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where TITULO='$radio' AND Area='$Var1'");
  49.  
  50. if ($radio == "CLAVE" AND $resp=="SI")
  51. $result=mysql_select_db("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where CLAVE='$radio' AND Area='$Area'");
  52.    
  53. if ($radio == "CLAVE" AND $resp=="NO")
  54. $result=mysql_select_db("contenido","select Area,Clave,Autor ,Titulo,LugardeEdicion ,Editorial ,AñodeEdicion,NumerodePaginas,Contenido,Edicion  from Contenido where CLAVE='$radio' AND Area='$Var1'");
  55.  
  56.  
  57.    
  58. ?>
  59.  
  60. <?PHP
  61. while($row = mysql_fetch_array($result));
  62. {
  63. ?>
  64.  
  65.    
  66.  
  67. <td height="99"><span class="Estilo11"><FONT COLOR=BLUE><?PHP echo  $row["Clave"]; ?> </td>
  68. <td><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["Autor"]; ?> </td>
  69. <td><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["Titulo"]; ?></td>
  70. <td><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["LugardeEdicion"]; ?></td>
  71. <td><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["Editorial"]; ?></td>
  72. <td><span class="Estilo11"><FONT COLOR=BLUE><?PHP echo $row["AñodeEdicion"]; ?></td>
  73. <td colspan="3"><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["NumerodePaginas"]; ?></td>
  74. <td width="84"><span class="Estilo11"><FONT COLOR=BLUE><?PHP echo $row["contenido"]; ?></td>
  75. <td width="60"><span class="Estilo11"><FONT COLOR=BLUE> <?PHP echo $row["Edicion"]; ?></td>
  76.        
  77. </TR>
  78. <?PHP
  79. }
  80. ?>

Última edición por GatorV; 22/01/2009 a las 09:53 Razón: tags php