Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8499537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:41:42+00:00 2026-06-11T00:41:42+00:00

For example, a field consists of two data, base level and job level, and

  • 0

For example, a field consists of two data, base level and job level, and are split with a delimiter.

Field Name: ‘baselvl:joblvl’
Example Data: ’70:30′ => the entry signifies base level of 70 and a job level of 30

I’m trying to include a search in a PHP website to grab data that fulfills certain conditions. For example, grabbing data that has a base level of 70 or higher. Or, say, a base level greater than 50 AND a job level less than or equal to 30.

Updated:
I forgot to mention that they designed this field such that the joblvl part is optional.

Example Data: ’70’ => the entry signifies base level of 70 and a job level of 0

And yes, I agree, the design isn’t that great – but I can’t change it. I have to work with how it is

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:41:43+00:00Added an answer on June 11, 2026 at 12:41 am

    try this:

    I think you are using mysql. Use the following query to split the column..

    set @field='70:30';
    select substr(@field,1,LOCATE(':',@field)-1) as baselvl,
    substr(@field,LOCATE(':',@field)+1,length(@field)-LOCATE(':',@field)) as oblvl
    

    Please note that, the best way is to store both the values in separate columns, other wise you in run into lot of problems like this in future

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Example: an Employee table with an optional DateOfBirth field can be normalized into two
For example, there is a field: <input type=file name=files[] multiple=multiple class=multiupload /> How can
I have two text files, C:\Test1.txt and C:\Test2.txt . C:\Test1.txt data consists of a
I have a MySQL table of names , which consists of two fields: name
For example: In my table I have text field with following text: The quick
For example I have a table. With a field Idnumber. And the field has
For example, I always generate an auto-increment field for the users table, but I
For example, I have a class with a public field and corresponding getter/setters: public
In this example com.test.Cat extends com.test.Animal and there is no field DB in CAT
I have the following example of what a user might type into a field

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.