SELECT",$line); $l = str_replace("FROM","
FROM",$l); $l = str_replace("LEFT JOIN","
LEFT JOIN",$l); $l = str_replace("INNER JOIN","
INNER JOIN",$l); $l = str_replace("WHERE","
WHERE",$l); $l = str_replace("AS","AS",$l); $l = str_replace("ON","ON",$l); $l = str_replace("ORDER BY","ORDER BY",$l); $l = str_replace("LIMIT","LIMIT",$l); $l = str_replace("OFFSET","OFFSET",$l); $l = str_replace("DISTINCT","DISTINCT",$l); $l = str_replace(" ","
",$l); print $l."
"; if(substr($l,0,3) == "SQL") print "
"; } } renderQueries($str); ?>