Questions tagged as 'php'

2
answers

Problem with mysqli_fetch_object ()

Good afternoon friends and colleagues. I have the following code that gives me:    Warning: mysqli_fetch_object () expects parameter 1 to be   mysqli_result, boolean given Can you help me? function login($u = "", $c = "", $forzar = fals...
asked by 21.12.2016 / 16:49
1
answer

insert multiple fixes with php

How can I insert multiple fixes in mysql with php. html <form action=""> <input type="text" name="producto[]"> <input type="text" name="precio[]"> <input type="text" name="cantidad[]"> <input type="submi...
asked by 20.12.2016 / 03:04
3
answers

Form with steps

I'm trying to make a form with steps, I mean, so the form does not take up a lot of space, instead of doing it all the way I would like to do 3 or 4 inputs, for example, that the user gives a button next and then more inputs appear. The progress...
asked by 08.09.2016 / 10:34
1
answer

How to change the path redirected by the auth middleware in Laravel 5.3?

using the php artisan method make: auth I run into the problem that once I use route protection doing route::group(['prefix'=>'admin', 'middleware'=>'auth'], function(){...} When I want to enter a protected route, it redirects me to /...
asked by 09.09.2016 / 22:24
1
answer

Add students to a single project

Stackoverflow, greetings, I think this question because I have a system that registers projects and the students that integrate it, it saves them in a database, in a nested table PROJECT_ALUMNO that contains student_id and project_id, as well as...
asked by 07.09.2016 / 15:03
1
answer

Save each row in an array when submitting a form

I'm doing a form that takes information from a mysql database and php shows it in a form with checkboxes, my question is this: How do I save each selected row in an array? This is the code that creates each row of the form: while($row =...
asked by 03.08.2016 / 00:25
2
answers

Send ID by GET

I am currently working with codeigniter and I am passing a parameter as follows: <p><a href="<?= base_url()?>session/documentos/<?= $id_cur_ses ?>"><strong>DOCUMENTOS</strong></a><br>...
asked by 01.08.2016 / 15:28
1
answer

Sort a multidimensional array with PHP

I have a multidimensional array and the code they gave me in response to another question does not work, it only works with a non-multidimensional array: <?php $array = Array( "Color" => "YELLOW", "Varie...
asked by 14.07.2016 / 19:10
3
answers

Special characters, spaces, accents and XSS in PHP registry

I have a problem that leaves me vulnerable when it comes to registering new users in my database. I wanted to know this: 1. Scripts in register, 2. Accents in register, 3. Special characters, 4. Spaces in name 1. <script>alert("alerta")&...
asked by 14.07.2016 / 23:56
1
answer

How to paginate in PHP with MVC?

I have a controller and a view that work perfectly, I found it on the internet but now I would like to paginate the records and I can not do it with MVC: Driver class Home { public function saludo($nombre) { View::set("name", $n...
asked by 09.08.2016 / 02:05