Find Jobs
Hire Freelancers

Parse Category Tree File into Mysql Table

$30-250 USD

Terminado
Publicado hace casi 10 años

$30-250 USD

Pagado a la entrega
Hello, Here is the job we need. I hve an SQL Table that looks like this; MYSQL INFORMATION: parent_categ_id INT(10) categ_id INT(10) KEY (no auto increment) description Varchar(200) level INT(1) [categ_id] [parent_categ_id] [description] [level] I have a 6200 line text data file formatted like this, where each line is a row of categories separated by a slash '/' for instance : Antiques Antiques/Antiquities Antiques/Antiquities/Byzantine Antiques/Antiquities/Celtic Antiques/Architectural Antiques/Architectural/Brass Antiques/Architectural/Tole Antiques/Asian Antiques Antiques/Books Antiques/Decorative Arts ...... I need you to create a PHP script that parses the 6200 lines of data in the text file and puts it into the mysql table * The categ_id will be an manually incremented number ie; $i++ not 'auto increment' field * The parent_categ_id will be its parents categ_id AND NOT the parent description so the parent of Celtic will be 1 * The description will be the actual category as shown above ie; 'Celtic' * The level will be how many levels of categories up to this category ie; for Celtic it would be level=2 because each category previous counted up as (0,1,2) The Rules: It must look like this We must start the first item as having a categ_id=1 and parent_categ_id=0 So, Antiques in the above example would look like this [categ_id] [parent_categ_id] [ description ] [level] [1] [0] [ 'Antiques' ] [0] [2] [1] ['Antiquities' ] [1] [3] [2] [ 'Byzantine' ] [2] [4] [2] [ 'Celtic' ] [2] [5] [1] ['Architectural' ] [1] [6] [5] [ 'Brass' ] [2] [7] [5] [ 'Tole' ] [2] [8] [1] ['Asian Antiques' ] [0] [9] [1] [ 'Books' ] [0] [10] [1] ['Decorative Arts'] [0] So you must understand that no category shows up more than one time in our table even though it shows up numerous times in the text file. In the end, this will provide a way for us to know each category and what the parent of that category is so we may build a category tree for products. I have attached the 6200 line category file for your review. Thank you. Jay CompuMatter
ID del proyecto: 5908700

Información sobre el proyecto

10 propuestas
Proyecto remoto
Activo hace 10 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hi there I have done this before. I mean, have parsed multilevel tree data into mysql. I can easily do this job in Java. Looking forward to hear from you. Thanks Rinsad
$44 USD en 1 día
4,9 (1217 comentarios)
9,4
9,4
10 freelancers están ofertando un promedio de $107 USD por este trabajo
Avatar del usuario
hi, my name is shahid, i am working in web development from past four year. Will provide you quality work and hopefully we will have long term relationship in web development. let me know if i can help you. thanks
$100 USD en 1 día
5,0 (701 comentarios)
7,5
7,5
Avatar del usuario
Ready to start Sir ============================================================================================
$100 USD en 2 días
5,0 (139 comentarios)
6,7
6,7
Avatar del usuario
Dear Sir, I can parse your text file to mysql table without use php code, i can write a mysql store procedure to parse your text file. Please let me know if you accept my method. Best regards, Thanh
$155 USD en 2 días
4,8 (52 comentarios)
6,5
6,5
Avatar del usuario
Hello Sir, I can do this task. I will insert all record into Your DB. I have handled dump data before and inserted it into DB. I can also do Your task. Give me the opportunity to work with You. Thanks and Regards, Ripa Saha
$77 USD en 1 día
4,9 (59 comentarios)
5,2
5,2
Avatar del usuario
Hello! We are good at and love algorithms. Let us help you, the job will be done in a day. Thanks you.
$50 USD en 1 día
5,0 (9 comentarios)
4,2
4,2
Avatar del usuario
Hi, I would like to work with you, I will work on it immediately after you awarding this project to me. Waiting for your award. Thanks
$80 USD en 1 día
5,0 (4 comentarios)
2,9
2,9
Avatar del usuario
A proposal has not yet been provided
$155 USD en 3 días
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Anacortes, United States
5,0
72
Forma de pago verificada
Miembro desde feb 6, 2007

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.