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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:35:35+00:00 2026-06-13T20:35:35+00:00

I have a database that looks as follows: attribute id – value 64 –

  • 0

I have a database that looks as follows:

attribute id - value
64           - 109.txt
109          - some other data
110          - some other data
64           - 110.txt
109          - some other data
110          - some other data

I then have a php script that can read the text document here:

<?php
$lines = file('http://www.mywebsite.com/files.txt');
?>

I need to grab that text file from my database, where attribute id = 64 leaving the “other data” as it is. Then open the txt file in php and put the contents back into that exact field it got them from.

Any help is greatly appreciated.
Simon

Also: the table name is “mage_catalogsearch_fulltext” attribute_id and value are the correct names for the columns

The reason for me doing this is the product descriptions are all inside those text documents, and I need to suck them out and put the actual content into that field rather than the file reference

In ref to Jaspers post: is not me asking someone to write it but more give direction on the Query I should look at running to return each result and update each result for each reference.

  • 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-13T20:35:37+00:00Added an answer on June 13, 2026 at 8:35 pm

    Since this isn’t a place to find people to write your code, let me offer you with an idea how to approach it so you can write it yourself. If you get into problems along the way, this is a good place to help once you have specific questions.

    1. Start off by doing a select on all the fields you want to change
    2. Do the following for each of the rows your select returned:
      1. Check the last few letters of the value field to see if they are .txt
      2. If they aren’t, don’t do any of the following and just skip ahead to the next entry
      3. Otherwise, interpret the value of that field as a file name and read that file into a variable
      4. Do an update on your database where you set the value of the current entry to the contents of the file instead of the filename
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some code to update a database table that looks like try {
I have a collection of data that looks as follows: id name c1 c2
Ok I have a database that looks as follows: Orders, Services, OrderUnits, Notes Orders:
I have a mysql database that looks like this: |id | city | created
I have a self-referential table in my database that looks sort of like above.
say i have a nvarchar field in my database that looks like this 1,
I have a MySQL database table called Participant that looks something like this: (idParticipant)
I have a string in my database that represents an image. It looks like
In a legacy database (SQL Server 2000), we have a clustered index that looks
I may have to store some i18n-ed data in my database using XML if

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.