Vas a tener que colocar un simple buscador google en tu web, exepto que sepas de bases de datos, si sabes te comento que una vez creada la base debes colocar este script en php para que funcione
Cita: <?php
$displayRecs = 3;
$recRange = 10;
$x_abuskr = @$HTTP_POST_VARS["abuskr"];
$x_cpobusca = @$HTTP_POST_VARS["cpobusca"];
$x_nedicion = @$HTTP_POST_VARS["nedicion"];
$x_desde = @$HTTP_POST_VARS["desde"];
$x_hasta = @$HTTP_POST_VARS["hasta"];
$strsql = "SELECT * FROM `noticias` where ";
if ($x_abuskr!="") {
if ($x_cpobusca=="Todo") {
$searchwhere .= " Titulo like '%" . $x_abuskr . "%'";
$searchwhere .= " or Copete like '%" . $x_abuskr . "%'";
$searchwhere .= " or Cuerpo like '%" . $x_abuskr . "%'";
$searchwhere .= " or Autor like '%" . $x_abuskr . "%'";
} else {
if ($x_cpobusca=="Titulo") {
$searchwhere .= " Titulo like '%" . $x_abuskr . "%'";
}
if ($x_cpobusca=="Copete") {
$searchwhere .= " Copete like '%" . $x_abuskr . "%'";
}
if ($x_cpobusca=="Noticia") {
$searchwhere .= " Cuerpo like '%" . $x_abuskr . "%'";
}
if ($x_cpobusca=="Autor") {
$searchwhere .= " Autor like '%" . $x_abuskr . "%'";
}
}
} else {
$searchwhere = "1=1";
}
if ($x_nedicion!="") {
$searchwhere .= " and revista=" . $x_nedicion;
}
if ($desde!="") {
$searchwhere .= " and `fecha` >= '" . ConvertDateToMysqlFormat($desde) . "'";
}
if ($hasta!="") {
$searchwhere .= " and `fecha` <= '" . ConvertDateToMysqlFormat($hasta) . "'";
}
if ($searchwhere <> "1=1") {
$HTTP_SESSION_VARS["noticias_searchwhere"] = $searchwhere;
$startRec = 1; //reset start record counter (new search)
$HTTP_SESSION_VARS["noticias_REC"] = $startRec;
} else {
$searchwhere = @$HTTP_SESSION_VARS["noticias_searchwhere"];
}
$strsql .= $searchwhere;
$rs = mysql_query($strsql);
//echo $strsql; // comment out this line to view the SQL
$totalRecs = intval(@mysql_num_rows($rs));
// check for a START parameter
if (@$HTTP_GET_VARS["start"] <> "") {
$startRec = $HTTP_GET_VARS["start"];
$HTTP_SESSION_VARS["noticias_REC"] = $startRec;
} elseif (@$HTTP_GET_VARS["pageno"] <> "") {
$pageno = $HTTP_GET_VARS["pageno"];
if (is_numeric($pageno)) {
$startRec = ($pageno - 1)*$displayRecs + 1;
if ($startRec <= 0) {
$startRec = 1;
} elseIf ($startRec >= (($totalRecs-1)/$displayRecs)*$displayRecs+1) {
$startRec = (($totalRecs-1)/$displayRecs)*$displayRecs + 1;
}
$HTTP_SESSION_VARS["noticias_REC"] = $startRec;
} else {
$startRec = @$HTTP_SESSION_VARS["noticias_REC"];
if (!is_numeric($startRec)) {
$startRec = 1; // reset start record counter
$HTTP_SESSION_VARS["noticias_REC"] = $startRec;
}
}
} else {
$startRec = @$HTTP_SESSION_VARS["noticias_REC"];
if (!is_numeric($startRec)) {
$startRec = 1; // reset start record counter
$HTTP_SESSION_VARS["noticias_REC"] = $startRec;
}
}
?>