<%Links::Tools::sql_monitor%> Gossamer Links - Tools - SQL Monitor <%Links::header('SQL Monitor', 'This lets you send queries directly to your SQL server. If you are using MySQL as your database, you can use MySQLMan for more robust SQL management.')%>
Please enter your query (Gossamer Links tables are <%if db_prefix%>prefixed with '<%db_prefix%>'<%else%>not prefixed<%endif%>):


<%if query and not error%> Last query:
<%escape_html query%>

<%endif%> Save output to file: (leave blank to output to screen)
Output format: checked<%endif%>> Tab-separated values checked<%endif%>> Text checked<%endif%>> HTML

<%if error%>

Error: <%if error_connect%>Could not connect to database: <%escape_html error_connect%><%endif%> <%if error_prepare%>Could not prepare query: <%escape_html error_prepare%><%endif%> <%if error_execute%>Could not execute query: <%escape_html error_execute%><%endif%> <%if error_other%><%escape_html error_other%><%endif%>

<%endif%> <%if results%> <%unless results starts "Rows affected"%>

Your query returned <%rows%> rows.

<%endunless%> <%results%> <%endif%>