Questions tagged as 'php'

0
answers

put an arrangement in a text to be sent in laravel with a file

Good afternoon in the following my query is about the following, I have a table that has a checkbox in which I already map () and get the data I want to obtain, also formed as a kind of arrangement. What I have considered is the possibility of s...
asked by 30.10.2018 / 19:45
3
answers

How can I find a number in a string in PHP?

I have a field in a table called personal and the data that it saves is a string of numbers delimited by commas, ex: 10,32,43,55,2,45 At the moment of wanting to make a query to find a specific employee I want to use this function: fo...
asked by 30.10.2018 / 18:20
0
answers

React native problems when uploading image with data in php

the data is not being uploaded, this is my React Native: import React, { Component } from 'react'; import {View,Text,StyleSheet,TextInput,TouchableOpacity,Image} from 'react-native'; import ImagePicker from 'react-native-image-picker'; import...
asked by 29.10.2018 / 21:34
0
answers

Requested JSON parse failed

I am learning how to send and receive data in json format through ajax and jquery. Only that when sending and receiving them I always have parse error but I already tried to make many modifications and I still can not solve my problem, could you...
asked by 30.10.2018 / 00:19
0
answers

Problems generating an excel with phpexcel

I am exporting a MYSQL database to an Excel file using the phpexcel library in PHP. require_once('phpexcel/Classes/PHPExcel.php'); require '../database.php'; $pdo = Database::Conectar(); error_reporting(E_ALL); ini_set('di...
asked by 30.10.2018 / 20:09
0
answers

Get the value of an input and save it in php variable?

I hope and you can help me !!, I need to get the value of an input and  save it in php variable !!, this is the code I have, is commented! <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script&g...
asked by 29.10.2018 / 18:44
1
answer

I have the following list of images of a dynamic php array, how do I click on any image to show it on a div?

<?php $dir="Paginas/"; $archivos=scandir($dir); $cantidad=count($archivos); $imagenes=array(); for($a="0";$a<=$cantidad;$a++) { if(eregi(".jpg", $archivos[$a])) { $imagenes[] = $archivos[$a]; } } $cant_imag...
asked by 29.10.2018 / 17:54
0
answers

Problem when capturing a value which comes by POST

$(document).ready(function(){ let selectCards =$('#cards'); let idSelectCards = selectCards[0].id; let selectEstados = $('#estados'); let idSelectEstados = selectEstados[0].id; let selectDistritos = $('#distritos'); let idSel...
asked by 01.11.2018 / 15:08
1
answer

How can I read the data of a db sql in an input text html5?

Here I have the code that works with the select ... but I can not get it to the input text. <div class="form-group"> <input type="text" value="" name="nombrecliente" id="nombrecliente" class="form-control input-lg" autocomp...
asked by 01.11.2018 / 11:57
2
answers

Mail body empty

The emails arrive with my body empty, first I thought it could be the name in the html but that solution did not work and I do not know what I can modify. <form action="TestMail.php" method="post" name="contact-form" id="main-contact-form"&...
asked by 28.10.2018 / 13:22