Questions tagged as 'php'

1
answer

I get the error Trying to get property of non-object in cap36.php on line 43

Line 43 of that php is: <tr> <td>Área</td> <td><h3><?echo utf8_encode($capitulos->area); ?></h3></td> </tr> I'm using php 5.6     
asked by 14.11.2018 / 12:45
2
answers

Send Request after x seconds

Good morning, I am sending a request xml to a webservice through PHP, what I need is that if they have passed x seconds and no response has been received from the webservice, cancel that request and send me a different one, how can I do it? G...
asked by 20.11.2018 / 16:09
1
answer

How to validate the time format in the 12 hour format? [closed]

I would like to know how valid it is if the time entered by the user has the correct format and has not entered unwanted characters, thanks in advance.     
asked by 21.11.2018 / 01:04
1
answer

Save values of a query in php

I need this occasion, know how to save the values of c.cat_name , sc.idSub and i.numFile , of the query, to use them later. $query1 = 'SELECT c.cat_name,sc.idSub,i.numFile from inventory_list as i inner joi...
asked by 21.11.2018 / 18:10
1
answer

How to run a cron job in laravel?

Develop a small module that basically sends a congratulatory email to users on their birthday, everything works fine but now I would like this email to be sent automatically every day at midnight, following a tutorial along with the documentatio...
asked by 21.11.2018 / 13:16
1
answer

Does anyone know how I can do this type of Eloquent query?

I need to have a query builder. The only way that has occurred to me is to make a string, and in the string form the eloquent query. I only have a problem executing the query. $variable = "where('a','asd')->get()"; return Modelo::$variable;...
asked by 21.11.2018 / 20:23
1
answer

Many-to-one consultation laravel

I have a doubt in a controller with a relation of many (Product) to one (Brand), I try to search in Product to show the relationship 'Brand' but apparently I have an error because when using where() to search In Product and then show the...
asked by 19.11.2018 / 12:04
1
answer

Warning: mysqli_fetch_assoc () expects parameter 1 to be mysqli_result, boolean given in C: \ xampp \ htdocs \ modif_pro.php on line 10

<?php $consulta = consultar($_GET["ruc"]); function consultar($ruc_prov){ include("Conexion.php"); $s="SELECT * FROM productos WHERE no='".$ruc_prov."' "; $rs= mysqli_query($enlace,$s); $filas = mysqli_fetch_a...
asked by 17.11.2018 / 11:48
1
answer

Problems registering user in php

I recently created a user record in a register.php file and a file that verifies, receives and sends the data to the db by means of registration_login.php but once I want to enter localhos / file / register.php send me directly to index.ph...
asked by 17.11.2018 / 23:30
1
answer

PHP Combine data from several arrays

I have the following case, which I can not make it work. It only works with one data for each variable. I understand that I must associate the variables, but I do not know how to do it. Any suggestions? Thank you very much! <?php $...
asked by 19.11.2018 / 13:38