Czy ktoś wie jak zrobić aby po skróceniu url wyświetlał się obrazek. Mam taki przykładowy kod
echo ' <a href="user/'.$n['text'].'/'.$n['id'].'"><p>zobacz profil</a> ';} } }
Plik htaccess wyglada tak
RewriteEngine on
RewriteRule ^index?$ index.php
RewriteRule ^user/([0-9a-zA-Z]+)/([0-9a-zA-Z]+) user.php?id=$1&uid=$2
i teraz user.php. Problem w tym, że obrazek się nie wyświetla
$id = ($_GET['id']); $newsquery = mysql_query("select * from images where id='".$_GET['id']."'") or die("bład zapytania"); }} }