Questions tagged as 'php'

2
answers

Can not use object of type stdClass as array

I am trying to update an object of my bd through my API , I am using Slim Framework 3 but when I execute the postman I get the following error:    Can not use object of type stdClass as array <?php use \P...
asked by 01.03.2018 / 17:29
1
answer

SQL Server PHP PDO exception: could not find driver

I am trying to connect to a database in SQL Server 2008 from Yii2. My version of php is 5.6.31 This is my configuration file in db.php return [ 'class' => 'yii\db\Connection', 'dsn' => 'mssql:host=127.0.0.1;dbname=softw...
asked by 01.03.2018 / 06:15
2
answers

problems BD filled [closed]

My doubt is that I do when my BD is full for example I use postgresql and I already have a lot of information, since it is used to store information every 5 minutes when performing a continuous monitoring of the local network of the company, as...
asked by 01.03.2018 / 15:04
1
answer

Send dynamic ids in POST to another php file

Hello, I am creating some dynamic inputs in the following way: $(".reporteBody").append('<input type="text" name="titulo' + y + '" id="tiulo' + y + '" value="Caja # ' + y + '">'); Let's say that 3 inputs are created, and since they ar...
asked by 25.02.2018 / 16:56
1
answer

WORDPRESS how to execute shortcode before sending an email and include the content in the message

I have the following problem. I need to develop a plugin for wordpress that at a given moment, personalizes and sends a series of emails to the user. The content of the emails is personalized in the administration with wp_editor, when saving, an...
asked by 26.02.2018 / 12:19
2
answers

Limit the elements that users can see in the views in Laravel 5.5

This is the view of posts on a blog to create, edit, view and delete. I want to restrict the create and delete button so that a user with a certain id can be the only one to see and use these buttons. Here I put the code of the view: <di...
asked by 25.02.2018 / 17:32
1
answer

Message asking if I am sure of this action in html and php

I have been investigating in this forum and in others for some time, and I can not find out how in the present list I am working with, I can delete the record, but first ask if I am sure. I'm doing it this way: echo "<script> functio...
asked by 26.02.2018 / 01:43
1
answer

How to code an entire php file in BASE64

I have the following problem. I developed a program in PHP for several clients, this program must be installed in a wamp locally with the client, since it connects with an SQL SERVER of a third party software, a wholesaler offered to distribu...
asked by 26.02.2018 / 08:43
1
answer

Insert data in two different tables with MVC

I have two tables that are related, one of them depends on the information of the 1st table (payments depend on contracts). I just have to take a form to save the information. This is how I have the registry function in the Controller: publ...
asked by 26.02.2018 / 08:30
1
answer

Get the data of a JsonResponse

I have a controller that accesses the method searchUserByName of another controller and returns a JsonResponse , this variable $user I understand that it is a Json right? If I want to get the value of the result that is insid...
asked by 26.02.2018 / 10:34