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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:18:36+00:00 2026-06-15T08:18:36+00:00

this is my table and php,mysql code table bookone => id/code/name row1 => 1/me/book1

  • 0

this is my table and php,mysql code

table bookone => id/code/name
    row1 => 1/me/book1
    row2 => 2/os/book2
    row3 => 3/pe/book3
    row4 => 3/ps/book4

    $sqlse='osmepe';

    $sql=sql_query("SELECT * FROM `bookone` WHERE `code` LIKE '%$sqlse%'");//not work

i want when code phares exists in $sqlse select the row .
for top example row1,row2,row3 muste be show .

row1=>me<os**me**pe//show
row2=>os<**os**mepe//show
..
row4=>ps<>osmepe//not show
  • 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-15T08:18:37+00:00Added an answer on June 15, 2026 at 8:18 am

    Take a look at the REGEXP operator

    $sqlse='os|me|pe';
    $sql=sql_query("SELECT * FROM `bookone` WHERE `code` REGEXP '$sqlse'");
    

    Should work.

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

Sidebar

Related Questions

I am using this code to insert some values in MySql table: <?php mysql_connect(localhost,root,root);
I'm using MySQL with PHP. This is like my table: (I'm using 3 values,
I am using MySQL and PHP 5.3 and tried this code. $dbhost = 'localhost';
This is my first time creating php/mysql code from scratch and Im a little
I'm creating this search function with PHP, javascript and mysql. This code is working
So I am generating a table with php/mysql, and in this table are numbers
I'm struggling with some PHP/MySQL code. I am reading from 1 table, changing some
Why does this pdo::mysql code crash on windows??? <?php $username = root; $password =
I'm having trouble displaying my mysql table using php code. All it displays is
This would be an example of database table: PHP script should limit query result

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.