Use PHP to format an input SQL query as HTML?

chapelain

New Member
What I am looking for is a php function that takes an unformatted query like this:\[quote\] $sql = "select name, size from things where color = 'green' order by price asc";\[/quote\]so that it would appear in an HTML page something like this:SELECT name, sizeFROM thingsWHERE color = 'green'ORDER BY price ASC';There's some code inside phpMyAdmin that does this already, I could look in there I guess!
 
Back
Top