URGENT php mysql code to manipulate a string of text from a mysql database and insert in a new table

Contest Brief

i have a database with a column called "message" in the format below
007 2020 1234567890 0987654321 5432167890

007 is staffID
2020 is managerID
1234567890 is subscriber1
0987654321 is subscriber2
5432167890 is subscriber3

The first three values are compulsory for a message to be valid while the remaining 9 (subscriber2..subscriber10) are optional.

Some messages may have up to 10 subscriber numbers listed e.g
007 2020 1234567890 0987654321 5432167890 5432667890 7432167890 9432167890

I need a web page/script that will parse the contents of the message field and use to build a new table of analyzed data. The source database table is updated externally every few minutes so I would like to put this script in cron to pick up any new messages that may have been inserted.

the analyzed table should break the message down as follows:
If a message has 3 subscriber numbers listed, 3 rows should be inserted in the table for parsed data

007 2020 1234567890 0987654321 5432167890 will become
staffID managerID subscriberID
007 | 2020 | 1234567890
007 | 2020 | 0987654321
007 | 2020 | 5432167890

the date column from the source database will be parsed and replicated as-is. all the parsed values should also be visible from within a web page.
structure of the source database table is attached.

this contest is only posted on the condition that i get this done within an hour or two. no entries will be selected later.

Recommended Skills

Employer Feedback

“Excellent php and mysql work at short notice. Good-natured chap. Will use again.”

Profile image gandalfx2, Nigeria.

Public Clarification Board

  • beedisanjay
    beedisanjay
    • 11 years ago

    Can we distribute the database in a better way, where you have:
    A Table for staff, messages and subscribers.

    This will help you even fetching reports:
    How many staff members, how many each send messages and how many subscribed to each message

    Also you can maintain date and time for subscription (if they are not on bulk and can register over a period)

    • 11 years ago
  • wethe5
    wethe5
    • 11 years ago

    I've completed script and uploaded screenshot.. As i couldnt found your database structure so i've created my own but changing table is not problem

    • 11 years ago
  • gandalfx2
    Contest Holder
    • 11 years ago

    i have attached a dump of the source database as a txt file to the brief. thank you.

    • 11 years ago
  • prit780
    prit780
    • 11 years ago

    Hello Sir/Mam, Thank you very much for this great opportunity. According to your requirement. We have perfect match for this job. We have reviewed your project requirements that you have posted,We are confident to do this job. We are also ready to start your work ASAP. We can communicate online on GTAlK or SKYPE as and how you feel comfortable. I believe in long term relationship. I look forward to hearing from you. We have immense expertise with Android, Mobile Phone, Graphic Design, Logo Design HTML5, CSS3, Java Script, AJAX, JQuery, PHP, MySql, SEO, CodeIgniter, Google Analytics, Google Webmasters tools designing. Good knowledge of responsive designs, We would be glad to help you develop this website in order help your business grow. We will also come up with suggestions and solutions

    • 11 years ago
  • theincredible
    theincredible
    • 11 years ago

    I can do it in less than 2 hours, but I think contest is not best option for this project, it has to be fixed price project and you select the winning bidder. Thanks

    • 11 years ago
    1. gandalfx2
      Contest Holder
      • 11 years ago

      thanks for the feedback. my budget for this is $20 and i put it up as a contest to move things along faster.

      • 11 years ago

Show more comments

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!