I wrote this, and I don’t get why it doesn’t get data from two different tables, it only takes from “stations” not “tags”. I tried so many ways, I’m just desperate!
<?php // Connect to Database $data = mysql_query("SELECT * FROM stations") or die(mysql_error()); Print "id: | ".$info['idStations'] . " | "; $sql=mysql_query("SELECT * FROM tags WHERE idStation= ".$info['idStations'].""); $res = mysql_query($sql); $row = mysql_fetch_array($res); $id = $row['idStation']; Print "Station: | ".$id . " | "; } Print "
---|
Thanks!