So, let say that I have a link like this: www.mywebsite/products/index.php?p=545
What i want is to have this link : www.mywebsite/products/nameofproduct
So here as you see, my webiste is showing some products when I click in a picture of a specific product it redirect to the link above. Do you have any idea how to do it ?
Here is the php code for the first link.
<?php if(!empty($data["Format1"])) {$Stat = $pdo->query("SELECT * FROM ".$TB_PRODUCTS." WHERE ".$PAYS."='1' AND Code = '".$Format1."' "); while($dataF = $Stat->fetch(PDO::FETCH_ASSOC)){ ?>
<td width="81" align="center"><a href="index.php?p=<?php echo $dataF["NumId"]; ?>">
<?php if(file_exists($FormatA1)) {echo $Format01;} else {echo $Format00;}?>
</a></td><?php }} else {echo '';} ?>