Currently i get the id with <?= $store->id ?>
and it works fine
but i want to get the ID of mysql entry with
$id = $_GET['store_id'];
$query = "SELECT * FROM store WHERE id = '$id'";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
or
$id = $_GET['$store->id'];
$query = "SELECT * FROM store WHERE id = '$id'";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
and output with something like this <?php print $row["id"];?>
but it doesn't gives me the ID, it remains empty. What am I doing wrong? (I am aware working with mysql_... is not the best way, but that's not the problem now).