How do I print rows where table names contains object, here printing of 'A.arrival' is not happening.
echo "arrival :" .$row['A.arrival'] ."."
Most database APIs don't include the table name in the associative array keys. So you should just use $row['arrival'].
If your query is returning two arrival columns from different tables, you should give one or both of them a different alias, e.g.
SELECT a.arrival AS a_arrival, b.arrival AS b_arrival, ...
Then you can refer to them as $row['a_arrival'] and $row['b_arrival'].
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With