Questions tagged as 'php'

2
answers

How to get part of a group of data that is repeated only once and the rest is repeated in MySQL?

It has the following tables: inspection ----------------------------------- Columna Tipo Nulo Predeterminado id_inspection int(9) No machines_numbers int(1) No shift_shifts_id in...
asked by 22.02.2018 / 15:27
1
answer

I want to enter each element of an array as a record of each mysql column

What I want is to enter each element of an array in a field of my database this is my structure example table record has four fields value1, value2 value3, value4 I want to enter the following records that are generated from the following code...
asked by 22.02.2018 / 21:20
1
answer

Parsear Csv in Php

It turns out that I have this csv and it is one of the first times I parse one so "complex" I need to know an idea of how to pause it in php. I need to create an associative array with the csv data, but the problem is that there is only...
asked by 16.02.2018 / 14:56
2
answers

PHP - Validate if a date passes through another

It happens that I have a table where I keep records of things that are going to be done with a format: task, start date, end date Example: Pruning the lawn, 2018-02-20, 2018-02-25 What I need is that you can not register in the BD tasks th...
asked by 16.02.2018 / 16:38
2
answers

ajax does not return data

I have the following code that should bring a response from a PHP file but it does not return anything. The answer should print it in an input. Any suggestions? Thank you very much! $('#servicio select').on('change', function() {...
asked by 15.02.2018 / 13:21
1
answer

Simple search engine with laravel

I want to do a simple search with pagination, and to show the result below the search button, the most I have arrived is to show the arrangement with the information in the database, the question is: How do I show the information? by pressing th...
asked by 21.03.2018 / 03:19
3
answers

Validate a URL with PHP

I have a big doubt about how I can validate a URL from PHP but that, in addition, it has https protocol or it is incorrect. Based on this I could say if a URL is valid: Code: <?php // Variable to check $url = "http://www.w3s...
asked by 08.03.2017 / 04:26
1
answer

PHP DataTables Error

Hi everyone, I try to use dataTables with Php, from Mysql data, but I get the following error:    DataTables warning table id = example1-Request unknown parameter '0' for row 0 This is my code <table id="example1" class="ta...
asked by 03.03.2017 / 17:38
2
answers

Sort an array by specific letter

I used asort to order an associative arrangement of words for a search box, I opted for it to avoid changing the order of the keys, the problem is that when making the search the first letter entered by the user should appear Among the fi...
asked by 05.02.2018 / 23:13
2
answers

how can I make this inquiry?

How can I make a message in the table account instead of a 0 ? $notification_info = mysql_query("SELECT count(*) as cuenta from notification WHERE viewed='viewed_no_$uid'"); if (mysql_num_rows($notification_info) == 0) {...
asked by 10.03.2017 / 17:08