jimeast
jimeast

Reputation: 277

I need a vertical display of a row using php

At the command window I can get a vertical display just by adding \G to the end of the query. SELECT * FROM members WHERE member_id = '1234567'\G; I've tried replicating the same thing from php but it isn't working. Can this be done?

Upvotes: 0

Views: 58

Answers (1)

Sammitch
Sammitch

Reputation: 32232

\G is a feature in the mySQL CLI program, not mysql itself. You will have to write a loop to do this.

Upvotes: 1

Related Questions