Cita:
Iniciado por GatorV Haz la prueba y verifica si te sirve.
Si muestra la pagina pero muestra la principal que seria page=1 y siempre muestra esa y no las demás que si;
$page = 3;
o
$page = 4;
o no se el script del archivo del index.php
Código PHP:
Ver original<?php
$mysql_server = '***';
$mysql_username = '***';
$mysql_password = '***';
$mysql_database = '***';
$mysql_table = '***';
$cms_no_results = 'No results';
$cms_content = '';
$db = mysql_connect($mysql_server, $mysql_username, $mysql_password); if (!$db)
{
}
$query = isset($_REQUEST['query']) ?
$_REQUEST['query'] : ''; {
{
}
foreach ($words as $word)
{
{
$terms[] = $word;
}
}
if ($terms)
{
{
}
$sql = "SELECT p.id, p.name, p.content FROM " . $mysql_table . "PAGES p, " . $mysql_table . "SEARCH_WORDS w, " . $mysql_table . "SEARCH_WORDMATCH m WHERE(";
$where = "w.word LIKE '%" . array_shift($terms) . "%'"; {
$where .= " OR w.word LIKE '%" . $term . "%'";
}
$sql .= $where . ") AND m.word_id = w.id AND m.page_id = p.id GROUP BY p.id ORDER BY p.last_update_date DESC";
{
$cms_content .= " <ol class=\"searchresults\">\n";
{
$cms_content .= " <li><a href=\"" . basename(__FILE__) . "?page=" . $data['id'] . "\">" . $data['name'] . "</a><br>"; {
$contents .= "...";
}
$cms_content .= $contents;
$cms_content .= "</li>\n";
}
$cms_content .= " </ol>\n";
}
else
{
$cms_content = $cms_no_results;
}
}
else
{
$cms_content = $cms_no_results;
}
}
else
{
{
$sql = "SELECT * FROM " . $mysql_table . "PAGES WHERE id = '$id'";
}
else
{
$sql = "SELECT * FROM " . $mysql_table . "PAGES WHERE home = 1 ";
}
if ($result)
{
{
if (!empty($data['url'])) {
$cms_content = "<iframe name=\"cmscontent\" style=\"position:absolute;border-width:0;width:100%;height:100%;\" src=\"" . $data['url'] . "\"></iframe>\n";
}
else
{
$cms_content = $data['content'];
}
}
{
{
$sql = "UPDATE " . $mysql_table . "PAGES SET views=views+1 WHERE id = '$id'";
}
else
{
$sql = "UPDATE " . $mysql_table . "PAGES SET views=views+1 WHERE home = 1";
}
}
}
}
?>