MySQL conversion json

Source: Internet
Author: User

http://51strive.com/

<! DOCTYPE html>
<meta charset= "UTF-8" >
<title> Online Mysql Conversion JSON string </title>
<body>
<a href= "HTTPS://GITHUB.COM/ONEFISHUM/XMPPHP-FOR-PHP7" target= "_blank" >xmpphp-0.1rc2-r77 for php7</a> <P>

Mysql output Format:<br>

Mysql> SELECT * from demo_test;<br>
<pre>
+-----+--------------+------+------+------+
| C1 | C2 | C3 | C4 | c5 |
+-----+--------------+------+------+------+
| A11 | 123456789 | 10 | 1 | 0 |
| AA | Hello, hello | 8 | 0 | 0 |
+-----+--------------+------+------+------+
</pre>
<P>
<div style= "Courier New" >
<form name= ' Msyql2json ' action= "method=" post "accept-charset=" Utf-8 ">
<input type= "Submit" name= "Submit" value= "commit" onclick= "Checkvalid ()" >
<P>
<textarea id= "strdata" name= ' text ' style= "width:800px;height:320px;" >
</textarea><br>
</div>
</form>
<p>
JSON string:<p>
Null<div style= "Display:none" > <a href= "http://www.art-zys.com" ></a></div>
<script>
var _hmt = _HMT | | [];
(function () {
var HM = document.createelement ("script");
HM.SRC = "//hm.baidu.com/hm.js?e8bbc4c2aa86f142f8c62acd306e2497";
var s = document.getelementsbytagname ("script") [0];
S.parentnode.insertbefore (hm, s);
})();
</script>

<script language= "JavaScript" >
function Checkvalid ()
{
var tex = document.getElementById ("Strdata");

if (Tex.value.length > 16384)
{
Alert ("Enter no more than 16,384 characters!") Has exceeded "+number (tex.value.length-16384)");
return false;
}
return true;
}
</script>
</body>

MySQL conversion json

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.