Questions tagged as 'php'

2
answers

Filter insert in bd according to the date

I have an application in laravel, which manages the holidays, I have a problem when filtering the dates selected by the workers, since I am only able to filter the start and end date, the problem is that according to the department 2 workers can...
asked by 02.08.2018 / 10:22
1
answer

Error Call to undefined function storage_patch () when I run a seeder in laravel

I'm trying to run a seeder but I get the error: Call to undefined function storage_patch() I could not find the one. I have a table in migration called user with the sgts fields: use Illuminate\Support\Facades\Schema; use Illuminate\...
asked by 26.10.2018 / 19:08
1
answer

Warning: mysqli_stmt_bind_param (): Number of elements in type definition string does not match number of bind variables in?

Hi, I'm new to this php, please help me please, these are the errors that are thrown    Notice: Undefined index: name in C: \ xampp \ htdocs \ Register.php on line   4       Notice: Undefined index: course in C: \ xampp \ htdocs \ Register.p...
asked by 30.10.2018 / 05:56
1
answer

LOGIN WITH PRIVILEGE PHP PDO DOES NOT WORK ME - I CAN BE HELPED [closed]

This is the code that fails updated, attached image db <?php session_start(); error_reporting(0); include('includes/config.php'); if($_SESSION['alogin']!=''){ $_SESSION['alogin']=''; } if(isset($_POST['log...
asked by 29.10.2018 / 10:40
2
answers

Problem when calculating difference between two dates in PHP

Can someone tell me why this code prints 12 ? $_POST['sdate'] in this example is: 2018-10-31 $_POST['date'] in this example is: 2019-07-13 $startDate = DateTime::createFromFormat('Y-m-d', $_POST['sdate']); $...
asked by 29.10.2018 / 19:49
1
answer

Query Mysql Product Category Subcategory

I have this relationship: And I would like to make the appropriate consultation that the Products that belong only to a Subcategory, of a specific category, would throw at me. If you could help me, I'd appreciate it, I'm going around...
asked by 27.10.2018 / 00:34
1
answer

show an error message or block if the time and date of the computer is not correct php

I need to do with php a time check, one that shows me an error message if the time of the computer is less than the server that shows an alert message, so far with much help I got bring the 2 dates but, the values of the 2 as such are not remote...
asked by 31.07.2018 / 20:58
2
answers

How to add text to a text area

My problem is not a problem, it is a doubt. I have a text area in which the user writes a comment that will be published on my website, but I also have a command code that by pressing, for example / in the text area, a list with friend...
asked by 01.08.2018 / 14:25
1
answer

Filters excelphp

Hi, I'm using this library link and I want to add a date and time filter that looks like this: and in the BD the info is in the sgt structure: 2018-06-19 12:13:21 but when you put it in the cell it reads it as text and not a...
asked by 06.07.2018 / 17:00
2
answers

Get the results inserted

I have a stored procedure that stores data in the db, and I want to know if there is any function to get that record that is saved in the database. $sql = "CALL registrar(?,?,?,?,?,?,?)"; $stm = $this->db->prepare($sql); $stm->bindPar...
asked by 01.08.2018 / 16:09