-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
55 lines (47 loc) · 1.95 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<title>MySQL Output Converter</title>
<style type="text/css">
body {
font-family: verdana;
}
textarea {
width: 75%;
}
#example {
display: none;
}
</style>
<script type="text/javascript" src="mysql-output-converter.js"></script>
<!--[if IE]>
<script type="text/javascript" src="http://g.fligtar.com/html5-ie.js"></script>
<![endif]-->
</head>
<body>
<header><h1>MySQL Output Converter</h1></header>
<section>
<p>Just paste the output of a MySQL query and convert it to <abbr title="Comma Separated Values">CSV</abbr> or an HTML table. <a href="#" onclick="example(); return false;">see an example</a></p>
<p><textarea id="mysql" cols="70" rows="10"></textarea></p>
<p>
<input type="button" value="to CSV (no quotes)" onclick="mysql2csv(false);"/>
<input type="button" value="to CSV (quotes)" onclick="mysql2csv(true);"/>
<input type="button" value="to HTML table" onclick="mysql2html();"/>
</p>
<p><textarea id="output" cols="70" rows="10"></textarea></p>
</section>
<footer><a href="http://blog.fligtar.com/2010/01/22/mysql-output-converter/">view the blog post</a> · <a href="https://github.com/fligtar/mysql-output-converter">see the source</a></footer>
<div id="example">
mysql> SELECT * FROM word_replacements;
+----+-----------+-------------+---------------------+
| id | word | replacement | created |
+----+-----------+-------------+---------------------+
| 1 | favourite | favorite | 2010-01-22 01:06:59 |
| 2 | centre | center | 2010-01-22 01:06:59 |
| 3 | flavour | flavor | 2010-01-22 01:14:30 |
| 4 | colour | color | 2010-01-22 01:14:30 |
+----+-----------+-------------+---------------------+
4 rows in set (0.00 sec)
</div>
</body>
</html>