Questions tagged as 'php'

0
answers

PHP- Trying to get property of non-object

I'm trying to do a query on mysql in php, but I get an error on line 131, which is: $num = $res->num_rows; The error is:    Trying to get property of non-object. I know that the error comes from the query but I can not find it. Co...
asked by 18.09.2018 / 10:02
0
answers

How to translate this array of this class

I am creating a theme for wordpress and I would like it to be multilanguage. I am using this wordpress function: link that allows you to translate texts. The problem comes in the use of this class: class haceTanto extends DateTime {...
asked by 16.09.2018 / 15:30
0
answers

Pass id value of a button to a mysqli php modal

I'm trying to pass a value from a button to an editing modal, the development I'm doing in php and mysqli the outputs are giving me a perfect way and the idea is not to leave the same page. to make modifications of the users, but I have found th...
asked by 16.09.2018 / 15:29
0
answers

How to place a php code inside a scrip in a .php file?

I have an MVC project and in my controller file I have a case that evaluates the action I execute, in the delete action I want to place a SweerAlert alert that contains an ok and a cancel that when the ok button is deleted , before using sweerAl...
asked by 16.09.2018 / 00:06
2
answers

Help button check box acceptance conditions

I have a form in which I added a check box with the following code (see below) but I can not get it to work, could someone please tell me if the code has anything else? Thanks     
asked by 20.09.2018 / 14:13
0
answers

error when consuming a webservice made in .NET

I get this error when wanting to visualize the data of a webservice made in .NET, where CODIGOPRODUCTO is a parameter of the webservice.    Notice: Undefined property: stdClass :: $ CODEPRODUCT This is my code: $getproducts = fil...
asked by 20.09.2018 / 04:24
1
answer

How to place 2 parameters to the input tag when the page is loaded

I am using the Bootstrap Tags Input plugin, and generating a dynamic table with php that I load through jquery with the Load method. This table has inputs where I show with tags what is stored there, for this I do so: <input type='text' v...
asked by 15.09.2018 / 19:33
1
answer

Code error: 42000. MYSQL

Good day I'm installing a laravel script on a vps and use a remote database, when I run the migration it throws me the error Code error: 42000. SQLSTATE[42000]: Syntax error or access violation: 1227 Access denied; you need (at least one of)...
asked by 15.09.2018 / 23:47
0
answers

How can I write a file to create and write a .txt file with the records of a table of a bd with php?

Actually I know how to write a .txt file with php but only sending data from a form, what I'm looking for is to write the file according to the records found in the table of the bd ...     
asked by 18.09.2018 / 17:45
1
answer

Values separated by comma to filter - PHP - Wordpress

I'm trying to separate values with a comma within a custom field so that the plugin I use from filters can separate them. The custom field is called 'sub_ubicacion_norte' . The values are for example in a post: "San Isidro, Vicente L...
asked by 21.09.2018 / 23:28