Questions tagged as 'php'

2
answers

Send data from Javascript to PHP and then use Phpmyadmin

I am in a project in which I use javascript to take information from some forms and I would like to be able to work with a database through phpmyadmin but as I understand I must first pass all the data I have taken through javascript to php Ther...
asked by 16.05.2018 / 08:10
2
answers

Run PHP code inside Javascript

They could help me with a problem: I want to execute PHP code inside Javascript . <html> <head></head> <body> <script type="text/javascript"> <?php echo "hola como estan"; ?>); </scr...
asked by 26.04.2018 / 17:59
2
answers

Edit rows with php

I just make a table of users with the functions of delete, edit and add, I have the functions of adding, deleting and editing, the problem is when I give edit to a row I see the fields in the row with the id = 1, this in any row, and what I want...
asked by 26.04.2018 / 14:50
2
answers

PHP Catchable fatal error: Object of class mysqli could not be converted to string

I'm starting in PHP, and I think my code is missing something so that it can work, because the error that I mentioned occurs. The code of my mysqlcon.php is: <?php session_start(); $host=; $username=; $password= ; $db_name=; $link=mysqli...
asked by 26.04.2018 / 00:29
1
answer

Ajax-Error using Json in PHP

I'm using Json to make an insert in MySQL using ajax, but I do not get any results and the insertion is not done, what am I doing wrong? JS code $("#btnprueba").click(function () { var array1 = []; $("#tabla .DataRow...
asked by 30.04.2018 / 04:21
1
answer

How can I create a file with data inside and if it exists replace it with php

I want it when a url arrives:   ? page = home & amp = change = user1 and put it in $ _GET variable [''] $Cambiar_recibido = $_GET['cambiar']; //Imprimir esa varible $usuario = $Cambiar_recibido; //Crear el archivo y si ya existe...
asked by 28.04.2018 / 21:51
1
answer

Insert dynamic map in HTML

I would like to be able to insert a dynamic map in my application. Right now what I have is a button, which takes me to google maps with the dynamic address I have, and the truth that works without problem Example: <a href="http://...
asked by 30.04.2018 / 10:55
1
answer

get the last two-dimensional associative arrangement

Hello, I need to obtain the last two-dimensional associative arrangement but I do not know how to go through each element of the first dimension, and make it "end () to obtain the last record of each one. It is according to "time" I must extr...
asked by 07.05.2018 / 14:11
1
answer

PHP do a search and extract in another variable

Good I am trying to do one thing, I explain myself: Of a variable type text with several lines I want to extract in another variable the line that contains something I've tried it in the following way: $reporte strrpos(substr('$TextoGrande'...
asked by 07.05.2018 / 14:50
1
answer

Problem with cookies in Wordpress copy

I am making a copy of a WordPress site from a local hosting, I do the steps as always: Download database Download files Change data in wp-config.php Change site address in wp-options in the database But at the time of...
asked by 23.04.2018 / 20:53