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.
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.
valuefield to see if they are.txtvalueof the current entry to the contents of the file instead of the filename