Hi i got a mysql-select about three tables, where each tables have different fields. One may have the field "title", the other may not but have the field "location". Now i want to have a common output of these three tables, and each row is supposed to have a title. for tables, whoch have the field "title" in the output the title should come from field "title" but if the table hasnt "title" but has "location" the title in the output should come from field "location". In a regular while-loop it would look like this:
while ($row = mysql_fetch_array($result)) {
$marker['###TITEL###'] = $row['title'];
}
what i want now is to have like a "flexible" $row['flexible']. So if field "title" exists it should be $row['title'] if it doesnt, but "location, it should be $row['location'].
Does anyone have an idea how to solve this?
Regards, Maschek