Questions tagged as 'php'

2
answers

Protect access to files on my system (php)

Implement a session system to protect my php files, I include it in every php file that shows a menu. <?php // CONECTANDO AL SISTEMA SEGUN TIPO DE USUARIO// if (isset($_SESSION['conectado']) && $_SESSION['conectado'] == true &...
asked by 22.03.2017 / 19:57
1
answer

Send Modal Form does not work

Good afternoon. I have a problem when it comes to post the data of a form that is inside a modal. I explain. From an exams.php table I call the modal passing the exam id: <td><button type="button" class="btn btn-info btn-outline btn-x...
asked by 16.12.2016 / 17:41
2
answers

Nginx + php7.1 + Vagrant

Good I installed homestead the last version that runs with php 7.1, but I really have project created in laravel 4.2 and using php 5.6, the problem is that every time I run my environment in vagrant I reconfigure the nginx with php 7.1 and I wan...
asked by 28.12.2016 / 18:22
1
answer

Can not use object of type mysqli_result as array

Hello, someone can help me with the following error: PHP Fatal error: Can not use object of type mysqli_result as array It is assumed that where the error marks me is in this line: $_SESSION['MM_UserGroup'] = $loginStrGroup;...
asked by 07.01.2017 / 23:03
2
answers

How to show duplicate MySQL and PHP records?

How can I get duplicate records of a product? I'm developing a site to sell video games online, I have a search bar to show the titles by entering their SKU, but I want to show them the games that have their duplicate. For example: ===========...
asked by 16.01.2017 / 05:21
1
answer

Why do I run this on all lines?

I'm trying to make every X lines insert a tr with a spacer, more or less I have it, but every time I get to the line to put the space, I put it in all the lines instead of in the line who does the jump. I'm using this code in javascript and j...
asked by 13.01.2017 / 20:38
1
answer

create a pdf of a specific div with jspdf

When I try to create a pdf with jsPdf I can not take the div specific, I tried everything but it does not leave me, any help is well received. <script> $(document).on('ready', function(){ $('.buttonNext').on('cl...
asked by 12.01.2017 / 03:36
1
answer

Exclude or Ignore an include

Good evening, I'm doing a project where I should consult and then modify some data, but I have the following situation: I have the Query of the query and after that, an include where I store the form in which the data will be displayed. Bu...
asked by 22.12.2016 / 03:48
1
answer

Problem with DIRECTORY_SEPARATOR in PHP

I am trying to do two selects nested, in which when the value of the first one is changed, some values collected from the Database will be loaded in the next one. For this I am trying to do it using php and ajax . The selects code...
asked by 20.12.2016 / 16:38
1
answer

Work with all the fields returned by a PHP, JQUERY, MYSQL table

Good, I have a problem that is that I need to manipulate all the records that exist in a table, that is, I am creating an inbox, with inbox and the tables and the backend part are fine, it returns all the messages that they wrote to me, since al...
asked by 20.02.2017 / 21:45