Is there a way to print the results of a MySQL query in the same format as the terminal?
Something like:
+--------+------------------------------+------+------+
| id | name | year | rank |
+--------+------------------------------+------+------+
| 10920 | Aliens | 1986 | 8.2 |
| 17173 | Animal House | 1978 | 7.5 |
| 18979 | Apollo 13 | 1995 | 7.5 |
| 30959 | Batman Begins | 2005 | NULL |
| 46169 | Braveheart | 1995 | 8.3 |
| 109093 | Fargo | 1996 | 8.2 |
I am querying the database from php.
Any help would be appreciated. Thanks!