Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Requests
Show specific data from MySQL / MariaDB table
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Joshhh" data-source="post: 472472" data-attributes="member: 67621"><p>Hi,</p><p></p><p>So I'm a bit stuck with a MySQL query. Basically, I want to have something that posts the data from the 'job' column in my database. However in this column it generates all of the information as JSON. (This is what it looks like in the table); </p><p>[CODE=json]{"onduty":true,"payment":10,"label":"Civilian",[/CODE]</p><p></p><p>However, seeing as it's in the JSON format, I can't just do the generic query as it'll just post the whole format.</p><p></p><p>How do I go about just selecting the data that's in the quotation marks after the 'Label', in this case; "Civilian".</p><p></p><p>Thanks</p></blockquote><p></p>
[QUOTE="Joshhh, post: 472472, member: 67621"] Hi, So I'm a bit stuck with a MySQL query. Basically, I want to have something that posts the data from the 'job' column in my database. However in this column it generates all of the information as JSON. (This is what it looks like in the table); [CODE=json]{"onduty":true,"payment":10,"label":"Civilian",[/CODE] However, seeing as it's in the JSON format, I can't just do the generic query[B] [/B]as it'll just[B] [/B]post the whole format. How do I go about just selecting the data that's in the quotation marks after the 'Label', in this case; "Civilian". Thanks [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Requests
Show specific data from MySQL / MariaDB table
Top