Questions tagged as 'php'

1
answer

How to use implode with arrays obtained from Mariadb PHP columns?

Hello, I am trying to return an array for each column of a query where it meets a condition where, and to each element of the array of each column add a ',' but I can not find how to do it, I leave my code: $sql = "SELECT producto, unidad, can...
asked by 05.10.2017 / 06:30
1
answer

How to get variables from get by php?

Good afternoon friends of stackoverflow. I have this doubt, in my php code I have a url with variable gets: link I would like to take the variables email and code and through the form that I will present to you later I want to send th...
asked by 04.10.2017 / 18:28
2
answers

Validation of the Curp in sat

Does anyone know of a webservice or how to post to validate if curp is correct? or failing to obtain all the information of the curp ? Searching the internet I found this http://consultas.curp.gob.mx/CurpSP/curp1.do?strCurp=' . $curp . '...
asked by 18.10.2017 / 18:24
2
answers

How to call my UPDATE route through the action of the form in laravel?

I'm trying to call the update path using the form's action and it does not send me any errors, but even then in the database my registry does not update. I'm using laravel's Route :: resource. This is my form: //Aqui quiero llamar la funci...
asked by 17.10.2017 / 16:23
2
answers

How can I include alertify.js in an .php file?

I would like to know how I can include the link plugin in an .php file, this is what I have up to the moment: <!DOCTYPE html> <html> <head> <link rel="stylesheet" type="text/css" href="../librerias/css/Login.css...
asked by 11.10.2017 / 23:27
1
answer

Transform txt to JSON

I have a list of cities in a txt file with their respective city name and id, I want to transform it to JSON with a format: [{"NOMBRE_CIUDAD":"CIUDAD_NOMBRE","ID_CIUDAD":"CIUDAD_ID"}]. What I currently have in the txt is: "CIUDAD_NOMBRE"...
asked by 12.12.2017 / 17:08
1
answer

error when performing login function with php

I have a code in php which I want to consume in android, the problem that I currently have is that when I try the code, I have problems with this, the error that I have is when executing the query with the varible " $ result "of the authenticate...
asked by 12.12.2017 / 06:25
1
answer

Print username when logging in

I need some help, I need that when a user loguee I print the username on the welcome page, I've tried several things but I have not yet achieved, here I plan as I have until now. Thank you in advance. <?php session_start(); if(!isset($_SES...
asked by 14.10.2017 / 18:42
1
answer

How to add an insert to save the name of the images in my mysql database

I would like to obtain the name of each one of the images uploaded to the web server and save them in my database for later reference.  to see if someone gives me a hand. Thanks for your help Here I leave the script that I use to upload th...
asked by 14.10.2017 / 04:45
1
answer

Pass text from a select to an input

I am trying that when selecting a value of a select, when opening a modal, the value and the text of the select are passed to different inputs. What would be the following: rut_usu = this input is passed the value of the selected option. j...
asked by 01.10.2017 / 19:17