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 7856791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:49:09+00:00 2026-06-02T20:49:09+00:00

I have a data in My-Sql column like this T_interest 1,14,49,145,203,302 It represents each

  • 0

I have a data in My-Sql column like this

T_interest
1,14,49,145,203,302

It represents each value for personal interest keywords.

I tried to extract the value and distinguish whether it has the value or not for the checkbox.

if(strstr($u_interest['u_interest'], ','.$row['i_idx'])):
$selected = 'checked';

here is the php command that I use right now.

but it doesn’t extract exact value from the database.

Let’s say I want to check if the data has 14 number or from this user table

T_interest
1,14,49,145,203,302

and if I use above command it tells me that a user has two values.

14,145 

It looks like PHP strstr command tells me two values because these two have 14 number.

So, can you help me why this is happening?

If you want more php lines I can post them.

  • 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-02T20:49:14+00:00Added an answer on June 2, 2026 at 8:49 pm

    Explode it into an array, this way you get the individual values.

    explode(",",$t_interest["u_interest"]);
    

    Then you can test for equality much easier.

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

Sidebar

Related Questions

I have data in a SQL Server 2008 table that looks like this: I
I have a SQL data like this: id date_start date_end identical_value 1 1 1
I have some data in an SQL table with an XML datatype column where
In SQL server 2008 R2, I have a table with column containing nvarchar(max) data.
I have some data with a timestamp in SQL Server, I would like to
I have a table with this data in SQL Server : Id ===== 1
I have a table in SQL Server which looks like this: ID Code Name
I have a single column table which looks like this: Gaming | Austria |
I have data that looks like this: CUSTOMER_ID OPERDAYSJUL OPERDAYSAUG OPERDAYSSEP ... OPERDAYSJUN 1
I have a SQL Server database table with a column called resources. Each cell

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.