Find Jobs
Hire Freelancers

Datatables.net checkbox select all passes table data via ajax to a php file and the php file do a change in the mysql datatable with dependent on the ajax data

€8-30 EUR

En curso
Publicado hace más de 5 años

€8-30 EUR

Pagado a la entrega
I delevoped a datatable and I am using [login to view URL] with this checkbox plugin: [login to view URL] and this file structure [login to view URL] So what I need now are some tiny code snippets in a [login to view URL] file and in the [login to view URL] via jquery that perform some specific mysql actions FOR ALL SELECTRED ROWS OVER ALL PAGES after pressing different submit buttons. When you press the main drop down menu („Mass Select Operations“) on my live example page [login to view URL] you will find all the specific submit buttons on the right, with the specific actions on the left. So the first one should update the value of the mysql column „forsale“ in the mysql table to the value 1 after pressing it for all rows that have a selected checkbox. I tried to do it with the following code in the [login to view URL] to test it with a single mysql change: $(document).on('submit','#mass_putonsale2', function(e){ [login to view URL](); show_loading_message(); var form = this; var rows_selected = [login to view URL](0).[login to view URL](); // Iterate over all selected checkboxes $.each(rows_selected, function(index, rowId){ // Create a hidden element $(form).append( $('<input>') .attr('type', 'hidden') .attr('name', 'id[]') .val(rowId) ); } ); var form_data_putonsale = $(form).serialize(); var request = $.ajax({ url: '[login to view URL]', cache: false, data: form_data_putonsale, dataType: 'json', contentType: 'application/json; charset=utf-8', type: 'get' }); hide_loading_message(); and with the following code in [login to view URL] elseif ($job == 'mass_putonsale'){ $query = "UPDATE cards SET forsale = 1 WHERE id = '"; mysqli_real_escape_string($conn,$_GET['id'][0]) ."'"; $query = mysqli_query($conn, $query); } But it is not working at all … so this would be the first specific tiny job and many more would come after this one for sure ... I can give you a view access to all live files, so you are able to get a quick overview before we do the job via [login to view URL] . here is a part of the process that is working, but I am not able to edit it to my needs, so the whole process is working. best greetings
ID del proyecto: 18122293

Información sobre el proyecto

2 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
2 freelancers están ofertando un promedio de €10 EUR por este trabajo
Avatar del usuario
I can fixed this problem I have experience in php,J's, database
€8 EUR en 2 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
kindly ignore the bid amount & time-line, it's just a placeholder, as i still need to receive more detailed requirements for you to finalized it. ------ Dear sir, I have read you project description and understand the over all idea about your on going project but I really needed detailed specs. Yes I am new here but have complete profile at upwork and also have earning and good rating too. I am a developer having more than 5 years of experience. look forward to hearing from you and talking to you thru' freelance message board. Regards HS (EvolutionSol)
€12 EUR en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de GERMANY
Bad Kreuznach, Germany
5,0
7
Forma de pago verificada
Miembro desde may 22, 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.