Hi,
I'm using .htaccess clean url and this is my url, when i want to see all the information of an article:
http://localhost/projectoname/news/something-happened-on-todays-news
And i have this code so i can get the information of the article:
<?php
//this output is -> something happened on tadays news
$item = mysqli_real_escape_string($dbConnect, str_replace('-', ' ', $_GET['pagination']));
$feedOne = '';
$selectFeed = $dbConnect->query("SELECT *
FROM `wp_feed`
WHERE `feedTitulo` LIKE '".$item."'
AND `feedTipo`='".$_GET['page']."'");
$rowFeed = $selectFeed->fetch_assoc();
if($selectFeed->num_rows > 0)
{
$id=$rowFeed['ID'];
$tipo=$rowFeed['feedTipo'];
$titulo=$rowFeed['feedTitulo'];
$texto=$rowFeed['feedTexto'];
$imagem=$rowFeed['feedImagem'];
$data=$rowFeed['feedData'];
$autor=$rowFeed['feedAutor'];
$tags=$rowFeed['feedTags'];
$feedOne .= '<article class="feedOne">';
$feedOne .= '<div class="imageSquare">';
$feedOne .= '<img src="'.$imagem.'" alt="'.$titulo.'" title="'.$titulo.'" />';
$feedOne .= '</div>';
$feedOne .= '<div class="textSquare">';
$feedOne .= '<h1>'.$titulo.'</h1>';
$feedOne .= '<div class="meta">';
$feedOne .= '<span class="datetime">'.$data.' </span>';
$feedOne .= '<span class="author">by <a href="#">'.$autor.'</a></span>';
$feedOne .= '</div>';
$feedOne .= '<div class="textExcerpt">';
$feedOne .= '<p>'.$texto.'</p>';
$feedOne .= '</div>';
$feedOne .= '</div>';
$feedOne .= '</article>';
echo $feedOne;
}
else
{
echo 'Feed Not Found.';
}
?>
But it gives me always 'Feed Not Found'. Is there any alternative so i can get the article's information?
Thank you!