Questions tagged as 'php'

1
answer

PHP: Start the update with value 1 and not 0

I have a table where I drag and drop, drag a row and place it in another position. The 'order' field starts with 1 and when I do a drag and drop they are updated from 0. I would like the update to be maintained from the order field with value...
asked by 15.09.2017 / 07:47
1
answer

How to know if an insert was made in Mysql database

I need to create a webservice in which I can verify in a Mysql database if a new record is added to a table. This in order to call the webservice in a thread as an android service so that when a new record is added send a notification. What h...
asked by 15.09.2017 / 14:02
1
answer

access the database of a php application on a server lin

I'm working with Plesk Onix Version 17.5.3 update # 21. The server is Ubuntu 16.04.2 LTS Php version 5.6.30 php extension: mysqli, curl, mbstring phpMyAdmin version 4.6.6 The fact is that I use the option "export dump" of the database with th...
asked by 14.09.2017 / 17:20
3
answers

Delete array element in PHP

I have tried multiple codes in PHP to remove an element from an array of strings by their name. There are already two days of infinite searches on the web, without any solution. The string json: ["stringNumero1","stringNumero2","stringNumer...
asked by 15.09.2017 / 19:54
3
answers

how do I take the id of a tag and then save it in a javascript variable

<html> <head> </head> <body> <?php $user="localhost"; $username="root"; $pass=""; $db="despensa"; $conexion=mysqli_connect($user,$username,$pass,$db)or die ("ERROR DE CONEXION"); $consultar...
asked by 16.09.2017 / 14:58
2
answers

address via get

My query is the following, I need to address to the same page that is created in php with html code, and within it I have a validation form via post, when I send the post to the same page that is index, valid those fields with php, then if there...
asked by 16.09.2017 / 22:49
1
answer

Count rows of two-dimensional arrangement

I have a two-dimensional array $persona[][] and I want to know how many rows it has. I used the function count() , but it tells me all the elements of the array, both rows and columns.     
asked by 29.08.2017 / 15:59
1
answer

Pass PHP variable to jQuery from different files

Good afternoon. I write after reading all the similar cases related to my query in this forum and not finding a solution. What I need to know is if you can pass the variable from a PHP document to the jQuery code written in another document....
asked by 28.08.2017 / 18:28
1
answer

Error with phpmailer form Deprecated: Function split

I want to send a form to a personal email, use an example of phpmailer that I saw in this forum, and it worked, the email is sent, but by showing the echo with the confirmation, first a couple of messages appear, which I do not want that they ap...
asked by 09.09.2017 / 00:08
1
answer

Pass controller variable to the view

I put this as an example of what I want to do: public function imagenPerfilusuarioController(){ if(isset($_POST['btnmodimgu'])){ $respuestaver=Datos::verimagenPerfilusuarioModel($datosController,"usuarios"); if (isset($respues...
asked by 22.08.2017 / 00:11