Advertisement

07.18.2008 at 07:29AM PDT, ID: 23576961
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.7

How do I go through a MySQL table in a database and add records using some information stored in existing records in that table?

Asked by ramsait in MySQL Server, PHP Scripting Language

Hello!

I think I need some expert help here.

So I've been trying to figure out how to do this and I'm stumped, hopefully I make sense here.

We have a table in a MySQL database that has 3 columns. It stores information about images in an image database.

Field_ID, Record_ID, String Value

Field_ID - is the type of field that we use for data retreival purpoes (city state country, image name etc)
Record_ID - is unique number for that image (can be used more than once, but the field_ID must be different)
StringValue - is the name of the city, state, country, image name etc.

Example:

10102, 2989455, Spain
10104, 2989455, Madrid
10207, 2989455, madrid.jpg

Now I need a new Field_ID where the StringValue is the same as the Record_ID value from another row. Essentially adding more information about that image.

So search for any of these:

10102, 2989455, Spain
10104, 2989455, Madrid
10207, 2989455, city.jpg

and then making one of these if it doesn't already exist (without duplicates):

10105, 298455, 298455

I'm not sure how to do this, I'm not very good with writing SQL statements, would php be good for this? I don't know where to begin. Any help would be greatly appreciated.Start Free Trial
[+][-]07.18.2008 at 07:47AM PDT, ID: 22036349

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 07:54AM PDT, ID: 22036441

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 07:54AM PDT, ID: 22036449

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:18AM PDT, ID: 22036721

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:30AM PDT, ID: 22036874

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MySQL Server, PHP Scripting Language
Sign Up Now!
Solution Provided By: anakinjay
Participating Experts: 3
Solution Grade: A
 
 
 
Loading Advertisement...
20080924-EE-VQP-39 / EE_QW_2_20070628