Questions tagged as 'php'

1
answer

Slow loading yajra / laravel-datatables

Summary of problem or feature request Well I have a problem using DataTable in laravel, so I saw the problem is because I have a relationship and when calling the values of the relationship this is the one with an excessive delay I have 13...
asked by 27.09.2018 / 05:07
1
answer

consult a single distinct with condition

I have a table with 4 columns id, descripcion_articulo, cantidad, modelo, marca and this query: ("select distinct descripcion_articulo from " . TABLE_ENTREGAS . " where numeracion = '' order by descripcion_articulo ASC") to generate th...
asked by 31.07.2018 / 15:28
1
answer

Error inserting records with MySQLi with prepared statements

I published a question yesterday, but another very similar problem arose, I already verified the connection to my database (it is correct), I already did "SELECT" of all my table and answered correctly, and update records and if you update them...
asked by 02.08.2018 / 02:06
1
answer

Difference between Fwrite and Fputs?

I am currently programming a small practice in which several partners are the fputs and the fwrite in which does not seem to affect the operation of the practice (which I am using fwrite, was the first I used), and I entered the doubt of the dif...
asked by 11.10.2018 / 01:57
1
answer

Differences between commenting with # and //

I'm doing a project in laravel and would like to know the appropriate use of commenting with 1. # O 2. // I appreciate your help     
asked by 11.10.2018 / 22:53
1
answer

Comparator does not work! =

I'm trying to recognize when a record in my BD does not match a word. I have the following code that works well when $ client is equal to Day , but does not work if $ client equals day elseif (strpos($cliente, 'Dia') !== false o...
asked by 16.10.2018 / 10:30
1
answer

Generate User Name from name and surname

I have the following code where I enter a user, but I want to validate if the username that I am assigning to the user already exists and if so add it add a number to username Example: JPerez, JPerez1, JPerez2 . // Separamos los...
asked by 27.07.2018 / 21:02
1
answer

Obtain the ID of an Order, at the moment of sending it by PHP to BBDD (For a CSV)

I try to do the following: When you send a FORM , you generate an order, which, through Ajax, you send to the database. Next, I have another Ajax, (both in jQuery when submitting) that pulls out a csv file from the order: <?php $c...
asked by 30.08.2018 / 16:01
1
answer

Upload multiple photos using a PHP and MYSQL array It does not work

I am trying to upload some pictures through PHP and MYSQL, I am sending by means of a for the images from a form, to receive them is where I imagine my error is, any help I appreciate it. <div class="modal fade" id="addphoto_<?php ec...
asked by 30.07.2018 / 18:09
2
answers

How to show all the contents of a Mysql table in PHP?

I want to make people with the reader role, only see the contents of their rows, but the administrator sees everything, I'm using this code but I do not understand why it does not work. I do not see where the error is here in the logic, because...
asked by 30.08.2018 / 16:14