Questions tagged as 'php'

1
answer

Difference of time elapsed between two hours

I am trying to calculate the total hours worked of the day per employee, taking as data, time of entry, meal time, meal time and departure time. Keeping this data like this: Entry: 08:00:00 AM Food: 01:00:00 PM End of meal: 01:45:00 PM...
asked by 15.05.2018 / 01:21
1
answer

show result url content by php

I have this link: link and what I wanted is to get the information through php and create my own gta v servers generator, How could you get that information through php? I hope you have explained me well something like this:...
asked by 14.05.2018 / 21:26
2
answers

As determined by time () the default time zone PHP

This question has arisen because of working with dates. The problem is the following; getting the current time from the function getdate() that takes the function time() returns me a time that has nothing to do with my time zone (U...
asked by 30.04.2018 / 16:48
1
answer

doubt in an if and symbol!

I have this if I explain it to a partner but I do not understand it well if (!($result = $db->sql_query($q))); Could you explain how it is read and how it works?  thanks     
asked by 30.04.2018 / 17:28
2
answers

Problem with array_diff

I'm having problems with the php array_diff_assoc function, it gives me the error    " Notice : Array to string conversion in" The code is as follows: static public function ctrMostrarConceptosLiquidarDistintos($item, $valor, $datos){...
asked by 07.08.2018 / 08:17
1
answer

why the sentence fails with PDO

I am doing a sentence with PDO in PHP and an error occurs when assigning the values. $request = [ 'lang' => ['value'=>'es','type'=>PDO::PARAM_STR, 'length'=>2], 'page' => ['value'=>'home','type'=>PDO::PARAM_STR,...
asked by 09.08.2018 / 08:04
2
answers

Adjust variable text by editing it from the database

I have this code: To edit the path where the image is saved from the database: <?php $host = 'localhost'; $user = 'root'; $pass = ''; $db = 'img'; //creo mi conexion a la base de datos $mysqli = new mysqli($host,...
asked by 06.08.2018 / 22:18
2
answers

Consultation in ajax

$(document).ready(function () { var click = $('.click'); click.on('click', function () { var id = $(this).data('id'); usuario = '<?php $idMesero;?>'; for (var i = 1; i <= 14; i++) {...
asked by 20.05.2018 / 22:57
1
answer

Stylesheet do not react: PHP and CSS3

Sorry, lately I've been working with PHP, and I've noticed something. Every time I change from to I change the style of that button. Until then I understand it, because the style says "button {...}", but then, even if I put the "input [type =...
asked by 09.08.2018 / 23:03
1
answer

Error loading styles and selecting elements of a modal dynamically?

I am loading a data series with PHP in a table from the Database and according to the selected data I am opening a Modal that includes sections to add images and others. Selecting the first data in the list opens the modal and allows t...
asked by 17.05.2018 / 18:54