Find Jobs
Hire Freelancers

Change my php/mysql-code - Optimize search-function

€8-30 EUR

Terminado
Publicado hace más de 5 años

€8-30 EUR

Pagado a la entrega
Hi, I've got a PHP-code (see attached file). It is a script for searching my mysql-database. It orders by relevance (title *4 and content *1) $search_text is from a search-form. I need the following changes: 1) make the code secure against injections and other danger things 2) make the code work for more than one search-word. right now it works only for one-word-searches (for example "tree"). I need it to work also for more words ("my red tree"). So check the results for "my", for "red" and "tree" and sort by relevance. 3) make the code work for all german letters ä (= ae) ö (= oe) ü (= ue) ß (= ss) 4) optimize the code for performance. The table has more than 50.000 entries.
ID del proyecto: 18004341

Información sobre el proyecto

12 propuestas
Proyecto remoto
Activo hace 5 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
I made loads of dynamical searches for various platforms, I can certainly help you with this. And you'll get it on time and budget!
€29 EUR en 4 días
5,0 (5 comentarios)
3,2
3,2
12 freelancers están ofertando un promedio de €35 EUR por este trabajo
Avatar del usuario
Hi there Are you running your code in WordPress? or is this script outside of WordPress? Regards Junaid ....
€34 EUR en 0 día
5,0 (116 comentarios)
7,2
7,2
Avatar del usuario
hello i can improve your code so you can search for mor than one word and optimise it for large database i have over 13 years of experience working on xamp technologies. i providz a clean code and total satisfaction with the job lets talk on private for more details thank you
€70 EUR en 3 días
5,0 (65 comentarios)
7,0
7,0
Avatar del usuario
Hi, I have had look at your php file having function for fetching records and following observations. 1- Security i. very 1st thing you must do user filter_var as the input is submitted by user and then validate the input for valid expected data. ii- input must be escaped using mysqli_real_escape_string($con, $input) before using it in any sql query to prevent inject attacks. 2- I don't know what sort of select is used currently for fetching right records and I wonder why fulltext search was not used. I can advise and write and optimized select query for your search function after looking at your database. If you database is hosted on your website I can remotely access and do the job Let me know if you want me to work for you on this Regards Ahmed
€34 EUR en 0 día
5,0 (38 comentarios)
6,5
6,5
Avatar del usuario
Hello, i'll help you in your task. I will do it as per your guidance. Please initiate a chat session so we can discuss more about it. thank you.
€29 EUR en 1 día
5,0 (4 comentarios)
3,0
3,0
Avatar del usuario
Hello sir, I would like to take and complete your job, I will be working in PHP , mySQL and HTML/CSS/Bootstrap. 1) Easy job 2) Yeah this is easy aswell by using the LIKE query statment. 3) Okay this can be done 4) I can optimize it by adding pagination to the table , every page in the table will have like 5 or more rows ( Or whatever you want ,just like google search ) Hope you choose me for your job. Thank you and good day sir ^^
€12 EUR en 1 día
5,0 (2 comentarios)
2,1
2,1
Avatar del usuario
Guten tag. By the table structure (X_posts, post_title, post_content) it looks like you're using WordPress. Irrespective, I can do the following with your current code and database (MySQL): - Sanitize the search phrase (prevent injection) - Tokenize the search phrase (split into individual keywords) - Alias the given umlauts and double-s with their Latin equivalents - Optimize the PHP code - Maintain your relevancy weighting With database access, I can perform some further optimizations by adding indices and maybe fulltext type index, but MySQL is still not ideal for this. MySQL will be a bottleneck. I would propose/recommend to use SOLR as your search provider, which is purpose-designed for just such search cases, and would be far more performant, and can in addition return spelling-corrected results with spelling suggestions (whereas MySQL doesn't handle fuzzy search very well). Perhaps we can implement this MySQL-based search first and then explore SOLR in the near future. There are some very low cost providers (5 Euro/mth) .
€50 EUR en 2 días
5,0 (4 comentarios)
1,9
1,9
Avatar del usuario
Hi, Please accept my application. I desperately looking for job and I am ready to work in cheap price. I have more than 8 years of experience in PHP/MySQL/HTML/CSS/Jquery, CMS like Wordpress and framework like CodeIgniter/Yii/CakePHP and completed many projects successfully. I have read your job description and I find myself the perfect match for the project. I am sure that I will fulfill your requirements within your timeline. I would be grateful if you giving me a chance to work with you. Thanks a lot for your valuable time & waiting for your response eagerly! Best regards, Nayanjyoti Hazarika
€23 EUR en 1 día
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
hallo :) ich bin maryam i think this sql code handel your work SELECT * FROM nbaplayermaster WHERE "{$search_text}" LIKE Concat(Concat('%',firstname),'%') OR "{$search_text}" LIKE Concat(Concat('%',lastname),'%')
€23 EUR en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de GERMANY
Eppelheim, Germany
5,0
20
Forma de pago verificada
Miembro desde ago 5, 2017

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.