Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/11/2003, 08:15
Avatar de cadrogui
cadrogui
 
Fecha de Ingreso: junio-2003
Mensajes: 875
Antigüedad: 20 años, 10 meses
Puntos: 5
lo de los temas no lo comprendo muy bien, y con respecto a mi buscador aka te mando el code pq lo vean..

Código PHP:

$txt_criterio
=$_GET['txt_criterio'];


$conecta=mysql_connect("localhost","cadrogui","mikel") or die ("conexion");
mysql_select_db("revista",$conecta);
$con=mysql_query("select count(*) from contenido where cont_entero like '%$txt_criterio%'");
$muestra=mysql_fetch_array($con);
$total=mysql_result($con,0);
echo 
"Articulo encontrados: ".$total.'<br>';
echo 
"Palabra clave: $txt_criterio";
if (
$total<=1){

$con=mysql_query("select * from contenido where cont_entero like '%$txt_criterio%'");
$muestra=mysql_fetch_array($con);

$id=$muestra[ID];
$url='<a href ="articulos.php?articulo='.$id.'">[Leer Más]</a>';
include (
"includes/censura.php");
include(
"includes/emoticons.php"); 
print 
"<table width='100%' border='0' cellpadding='0' cellspacing='0'>";
print 
"<!--DWLayoutTable-->";
print 
"<tr>";
print 
"<td width='488' height='23' valign='top' bgcolor='#FFCC00'><i>$muestra[titulo]</i></td>";
print 
"</tr>";
print 
"<td width='488' height='10' valign='top'>         </td>";
print 
"</tr>";
print 
"<tr>";
print 
"<td height='74' valign='top' >$muestra[cont_previo]</td>";
print 
"</tr>";
print 
"<tr>";
print 
"<td height='20' valign='top'>Enviado Por: $muestra[nombre], $url  - Enviado:    $muestra[fecha]- , $muestra[lecturas] Lecturas</td>";
print 
"</tr>";
print 
"<tr>";
print 
"<td height='21' valign='top'><hr></td>";
print 
"</tr>";
print 
"</table>"
__________________
La mejor manera de aprender es por medio de un aprendizaje significativo....

http://www.cocert.cl