Questions tagged as 'php'

1
answer

Inquiry - Attendance control 24-hour shifts

Sorry, this is my first post and I'm asking for help hahaha ... I'll comment to see if you can give me a hand and several more can be useful. I have an assistance system made in PHP and MySQL, which works correctly. Ex: Employee X enters at 8...
asked by 21.02.2018 / 15:02
1
answer

the sql statement in postgres, is the prefix "public" necessary?

I am working with PHP and PDO connecting to a postgresql database, I have a doubt, since something that I do not expect is happening. $pdo = new PDO('pgsql:dbname=db_pdo_postgresql; host=localhost;', 'juan_postgres...
asked by 18.02.2018 / 13:00
1
answer

Insert in 2 different laravel tables?

I want to make an insert in 2 different tables of the database. I have the holiday table that stores the holidays and I have a calendar, in which calendar events must be saved to show it every time a vacation is approved, then I have: Contro...
asked by 20.02.2018 / 12:02
1
answer

Problem with prepared statement when obtaining several records and saving them in an array - PHP

The problem I have is that I do not know if I'm wrongly implementing the fetch_assoc or keeping the records wrong in the ' array because when checking if the $ stmt- & gt query ; execute () fails, tells me that it is correct and does n...
asked by 15.02.2018 / 22:57
1
answer

Laravel ORM Consulting relationships

I have three tables and models related to each other and I need to consult the properties whose Environment.Name = 'Dormitorios' and PropertyEnvironment.Value = 2 : App\Property : id address etc Methods:...
asked by 01.03.2018 / 14:28
2
answers

What this error is in PHP with SQL Server

Hello! After a long wait at the end, I have to develop a system using Yii2 and SQL Server . I downloaded XAMPP with PHP 5.6.31 and I installed SQL Server 2008 and I can not connect to the database. I have already tried down...
asked by 01.03.2018 / 14:04
3
answers

how do I update the records in a database?

I have this code, but it shows me this error: Notice: Undefined variable: id_Funcionario in C:\xampp\htdocs\Aeroasistencia\aplicacionTruji\actualiza.php on line 26 I am making the query using the id of each person to show me the data...
asked by 20.03.2018 / 12:45
1
answer

Return, does not work in scheduled task?

I have a driver in Laravel, which is processed every so often by a task scheduled from the server. This driver does a redirect: return redirect('/control_fich/'.$id_user.'/'.$date_utc); To another controller that continues processing w...
asked by 19.03.2018 / 08:35
1
answer

Laravel 5.6 and Vue Default values

I'm working on a project with Laravel 5.6 and Vue.js 2 that is costing me more than I thought. I have read several articles and questions in this community and everywhere I have understood that it is normal to use components of Vue.js to pass...
asked by 15.02.2018 / 19:41
1
answer

Error Connecting to MySQL with PHP and AJAX Requests

I am in a dilemma, so far the code has worked in such a way that it does not return anything and when I return the information to execute the connection and the SQL statement returns null spaces to me. <?php require_once "../../clases...
asked by 19.03.2018 / 01:12