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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:04:18+00:00 2026-05-30T01:04:18+00:00

i have a database with more than 20.000 posts on it. most of the

  • 0

i have a database with more than 20.000 posts on it. most of the posts have a signature:

like this one :

If in my dreams is the only
place i can hould u !

Then i want to sleep forever !!

Me:bb:272F9F64

so i want to print all the posts insde my database who contain signatures like (Me:PIN:272F9F64 )

all those signatures are starting with ( PIN: or PIN ) and they are 8 digits numbers and alphabit.

i used this code to print them but it is not working

$get_tit = $db->query("select id,name from brd limit 1000");
while($th=$db->fetch($get_tit)){

 if (preg_match("/PIN:[0-9a-zA-Z]+/", $th['name'])) {
    echo $th['name']."<br>";
    }
}

UPDATED **

this code for loop throw the database and delete any signature inside the post

$get_tit = $db->query("SELECT id, name FROM brd LIMIT 1000");
echo 'Results Found :'.mysql_num_rows($get_tit).'<br /><br />';
while($th=$db->fetch($get_tit)){
$result = mysql_query("UPDATE brd SET name=LEFT(name,LENGTH(name)-12) WHERE name REGEXP 'PIN:[0-9a-zA-Z]{8}$' and id='$th[id]'") or die(mysql_error());      

}

but it is not working the signature still there

any help Guys

Bbway

  • 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-05-30T01:04:19+00:00Added an answer on May 30, 2026 at 1:04 am

    This can be done really easily within MySQL:

    SELECT id, name FROM brd WHERE name REGEXP 'PIN:[0-9a-zA-Z]+$' LIMIT 1000
    

    Are you sure name is the field that has the post in it, though? I don’t know how you have your database designed, but personally I’d have name as the name of the user, and content as the content of the post. Make sure you have the right field name.

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

Sidebar

Related Questions

I have more than 50,000 rows of data in Excel that look like this:
Where I have more than one table in my database for use with (similar,
I have an MS Access 2003 Database with more than 60 tables and 120,000
I'm using very large database, some of tables have more than 30.000.000 entries, now
I have more than 100 million unique strings (VARCHAR(100) UNIQUE in MySQL database). Now
I have a SQL Server database which has grown to more than 15GB in
I have more than 30,000 rows in a table. It takes a lot of
I have a table with more than 300,000 records, of size approximately 1.5 GB
We have a operation in which more than 100.000 records are read from a
I'm importing more than 600.000.000 rows from an old database/table that has no primary

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.