I have the following entity:
class Alumno
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Col...
Veran I have a registration form to my table Inmueble , and one of the fields is its location, the ubicacion is also a table in my database, the fields in the table ubicacion are id and nombre , I need that the s...
In the DB model , the query is fine, in the Controller the information is sent correctly to the view but in the View not I know how to print the matrix in a foreach. The only way to print the arrangement is with the following:
<?php...
I am developing APIS with laravel 5.6, I have a driver that receives images and text, by post everything works normally for me here I leave the code js
JS
function registraPET(){
var datos = new FormData();...
I've been looking for the solution to this error everywhere, but no.
I would need your help to be able to continue with the project.
Here's the php and js.
PHP:
<?php
$accion = $_POST['accion'];
$password= $_POST['passw...
I'm trying to implement translations with gettext but I can not translate anything.
My project has the structure:
Project:
index.php
locale
en_GB
LC_MESSAGES
en_GB (.po and .mo)
I have looked in my php.ini that...
* I WANT TO ROUND A NUMBER, BUT I WANT TO PUT A CONDITION *
Math.Truncate(6.847457) //resultado 6
* But this truncates all the numbers I just want to truncate the 5 and the others if you round them *
I need to pass an array / JSON / Ajax variable to a PHP variable, so that I can manage it in my file.
I currently have this in index.php:
<script type="text/javascript">
$("#enviar").click(function(e) {
e.preventDefault();
var...
I have part of this code php , where you are doing insert to the table inventory_list , but what I need is that it depends on that you have selected in fkCategory , fkLocation and fkSubCat that refer to...