Questions tagged as 'php'

1
answer

Pass 2 or more variables in php

Happy Friday and happy weekend! I have a couple of problems, one could be resolved if I pass at least two variables to the next page. One works well link = '098usredit.php?idusr=' . $row098['98idusr']; Of pure ambition I wanted to spen...
asked by 03.11.2017 / 22:22
1
answer

problem with arrays

I would like to know why this happens: $ c [0] = 'a'; $ c [0] [0] = 'b'; so far so good, but if I add $ c [0] [0] [0] = 'c'; gives the error Fatal error: Can not use string offset as an array in H: \ aNoti \ web \ work \ miniforo \ p...
asked by 04.11.2017 / 13:43
0
answers

Does not recognize Requests in Laravel 5.5 project [closed]

I have the following methods in a controller: public function edit2($id) { $post = Post::find($id); $this->authorize('pass', $post); $categories = Category::orderBy('name', 'ASC')->pluck('name', 'id'); $tags...
asked by 24.04.2018 / 01:01
0
answers

Email sending with angularJs and PHP

Good evening, I'm having trouble sending emails using angularJs and PHP. I'm using PHP's angular and mail (http) service. In the network section it tells me that the form was sent but the email never arrives. If anyone knows a way to solve this,...
asked by 02.09.2017 / 05:20
2
answers

Consult per month

I have a table which shows a monthly condominium invoice, but I need to show the expenses that were recorded in the last month only in the database and not all the expenses that are, here is how the table is formed of the database Here is...
asked by 04.09.2017 / 19:06
1
answer

array with special characters to json_enconde PHP

Hello friends I know that this question is very common but I do not quite understand what is happening, I am trying to convert an array that contains special characters to JSON. 1.- This is the array that is returned to me from a database I a...
asked by 02.08.2017 / 15:25
0
answers

SQL query with "left join" and an "if" in PHP [closed]

I have this query: $customers_query_raw = "select ex.codigo_op, ep.entrega01_clave, ep.descripcion_articulo, ep.entrega01_envases, ep.entrega01_importe from " . TABLE_EXPORT_PATRIMONIO . " ep left join " . TABLE_EXPORT_COMPARATIVA_PATRI . " ex...
asked by 08.08.2017 / 10:13
1
answer

Problems with special characters mysql php [duplicate]

well as I mention it: I have a simple database with a single table because it is a test where ALL (the database, the table, the text fields) is with a collation "utf8_general_ci" then to the time to read from php the text field that has ñññ''0...
asked by 08.08.2017 / 02:29
0
answers

Login to the web using cURL

I am trying to login to a web site through cURL in PHP to later web scraping the resulting page when logging in. I am using the following code: <?php $url = 'URL en la que quiero logearme'; $ch = curl_init(); $parametros_post =...
asked by 08.08.2017 / 22:48
1
answer

Load data in an Input when selecting the data of other input

I need to select the document number of an Input from a list that is displayed, load the name to which that document number belongs in another Input. Example, when selecting the document number 12345, load me in another input, for example Pepito...
asked by 05.08.2017 / 00:26