I've got rendered page with lots of items and i want to have item-specific page accessed by clicking the link
while($row = mysqli_fetch_array($result))
{
echo "<h3><a href=\"".$row['Brand']."-".$row['Model']."\" class=\"text-info\">".$row['Brand']." ".$row['Model']."</a></h3>";
//more details
}
So by clicking $row['Brand']-$row['Model'] I'd like to be redirected to the page with this item. Can i do that somehow? As the only way i know - is to insert new .php file and pass some unique item's id from SQL via URL or post request by that is not SEO-friendly way, so I'd like to avoid that.
.htaccess) that will take the URL parts and translate (rewrite) them into$_GETparameters... Or You can use PHP routing. All depends on what setup, framework, cms you are using... But looking at the question as is, this is hard to answer or understand what is actually being asked...echo "<h3><a href='{$row['Brand']} - {$row['Model']}' class='text-info'>{$row['Brand']} {$row['Model']}</a></h3>";