<?php
$readSlide = read('(SELECT * FROM up_posts ORDER BY data DESC) up_posts',"WHERE tipo = 'post' AND status = '1' GROUP BY cat_pai ORDER BY data DESC LIMIT 4");
foreach($readSlide as $slide):
echo'<li>';
getThumb($slide['thumb'], $slide['tags'], $slide['titulo'], '866','254','','','#','t');
echo'<div class="info">';
echo'<p class="titulo"><a href="'.BASE.'/artigo/'.$slide['url'].'" title="ver mais de '.$slide['titulo'].'" >'.getCat($slide['cat_pai'],'nome').'-'.$slide['titulo'].'</a></p>';
echo'<p class="resumo"><a href="'.BASE.'/artigo/'.$slide['url'].'" title="ver mais de '.$slide['titulo'].'" >'.lmWord($slide['content'],300).'</a></p>';
echo'</div><!-- /info -->';
echo'</li>';
endforeach;
?>
Question
naldo_10
pega url certinho assim mas não lista conteudo :
</br>
http://localhost/cursos/prophp/projeto/art...unis-tomam-cafe
</br>
The requested URL /cursos/prophp/projeto/artigo/ashton-kutcher-e-mila-kunis-tomam-cafe was not found on this server.
</br>
sera que a artigo.php certo, logo abaixo ta a index e a artigo
</br>
http://localhost/cursos/prophp/projeto/art...unis-tomam-cafe
</br>
index.php
pagina artigo.php Edited by naldo_10Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.