Questions tagged as 'php'

2
answers

Delete with inner join

Good I have a problem currently in my code, I'm working on a student registration system, where a representative can enroll several students, but if I delete a student I do not want the representative's data to be deleted because this may have a...
asked by 07.06.2016 / 23:52
2
answers

Redirect access with sessions

By entering the valid user and password, the system creates a CONTROL variable to which the value of 1 is assigned. LOGIN.PHP: <?php require ('includes/config.php'); if (isset($_POST['user'])) { $usuariodao = new Usuari...
asked by 14.02.2017 / 15:04
2
answers

Undefined variable in a single view of laravel

good I find myself doing a library application in laravel at the time of making an individual view of the database using the driver show function I do it in the following way public function show($id) { $libros = Libro::find($id); if (...
asked by 14.02.2017 / 01:52
1
answer

Checkbox to select all and add the javascript selections

I am new to the forum, I have several days looking for the solution to my problem but I can not find it, the following happens: I have a mysql table with the following records: "id, product, quantity, price", each record is dynamically displa...
asked by 18.02.2017 / 01:31
1
answer

Force download or show in another window a pdf using html2pdf

Can you please support me? I am developing a simple system for a company, they want to generate service orders. It is a form with various inputs that the client fills in order to generate a PDF with all this information. Using htmltopdf l...
asked by 28.01.2018 / 06:31
1
answer

INSERT INTO does not work

I want to thank everyone for their time in advance. When I try to insert a series of data in a table called "comments", the affirmative answer of the mysqli_query that I placed inside the "if" is not given. I have checked in detail the databa...
asked by 02.05.2016 / 01:35
2
answers

List with commas in PHP and MySql

In a page of PHP I have a query of MySQL simple. The final result is a list. The part that generates the result while($row = mysqli_fetch_array($result)) { echo "<a href='".$row['url']."'>".$row['Name']."</a>, "; }...
asked by 26.04.2016 / 13:44
3
answers

Print result if all rows match PHP MysQl

I have a problem, I'm a PHP starter, I have a table where I keep the items that contain an order. Each item is marked as YES, if it has already been distributed, and it is marked as YES if it has already been delivered, since this may happen...
asked by 21.03.2016 / 18:01
1
answer

Add index to associative array in php

I am creating an associative array through php after doing a data validation, this code is to make the "fullcalendar" library work. However, at the end of that validation I need to do a second validation to add another index, but for some reason...
asked by 19.11.2018 / 13:51
1
answer

use Like with multiple columns

I am looking in one form or another for data in my columns $search = Notificaciones:: where('canal', 'LIKE', '%'.$canal.'%') ->where('region','LIKE', '%'.$region.'%') ->where('cadena','LIKE...
asked by 18.12.2018 / 22:19