PHP
function ConectarBD(){
$conexion = mysqli_connect("localhost", "root", "", "adbsense");
if($conexion){
echo 'La conexión de la base de datos se ha hecho satisfactoriamente ';
}else{
echo 'Ha sucedido un error ine...
I have the following code, but when I am going to pass values to the view I get the error Trying to get property of non-object .
Does anyone know what I'm doing wrong?
In the control path:
Route::get('test2', function(){
$client =...
Greetings,
I am creating an editing environment for use cases, I use the FabricJS library. To create the elements of the diagram I use the following code: (I use images)
var canvas = new fabric.Canvas('pizarra');
var HideControls = {
'...
How can I make my table update automatically taking the value of two input in JS , I use JSON , and can pass the parameters to the query the problem is that my table is not updated.
This is some code I use, researching I fo...
I have this little problem in Ruby, I have an api with this response:
response: [
{
waspurchase: 1,
purchase_data: {
gateway: "plazavipgate",
gateway_text: "TEXT_PGS_PAYMENT_ASD_ASD_ASD",
gateway_data: {
car...
Hi, I have the following problem, I am creating two functions to show queries in json format.
This is my code:
<?php
include'db.php';
class Descuento extends Database{
public function listar_producto(){
$sql = "CALL sp_mostrar_p...
I try to make a query with $ .post from JQuery doing the following:
function consultaAjax(url, val){
arreglo = { id: val };
datos = JSON.stringify(arreglo);
$.post(
url,
datos,
fun...
With retrofit I use a JsonArray, I want to get elements from the Json Objects list
this is my Json
{
"Codigo": 0,
"FechaHora": "2017-07-11T11:23:11",
"Mensaje": "Ok",
"Data": [
[
{
"Id": 1,
"Nombre": "Hum...
I want to go through it with a loop for in JavaScript.
let jsonObject = {
"hoteles": [{
"viaje": {
"origen": {
"iataCode": "VL",
"name": "Valencia",...
Depending on whether the form is valid or not, " success " or " some errors " should appear in a div with id="results" .
The problem arises when the form is not valid.
In the " fail " Ajax function, only the " alert " is executed an...