I have a link in a php file which takes mke to another page. Here is the link:
<?php echo ' <a href="product_detail.php?marca='.$row["maname"].'">'?>
So I know that I can take the marca from this link using $_GET["marca"] in php. Now I want to output some categories but only them which marca is the same as $_GET["marca"]. I create this sql query but it outputs an error in the last row:
$sql0="SELECT marche.marca as maname
FROM marche
WHERE maname=$_GET["marca"];
";