Questions tagged as 'php'

2
answers

Create mysqli database from php

I'm trying to create a database from php but I can not. The server I use is a must 8 with plesk and this is the code with which I am trying: <?php $servername = "localhost"; $username = "DB_Admin"; $password = "$4Fd3rnke"; // Cre...
asked by 24.10.2018 / 17:11
1
answer

how to get the value from ajax to php?

$(document).ready(function(){ $('#estados_visa').on('change', function(){ var distritos= $('#estados_visa').val(); console.log(distritos) $.ajax({ type:'POST', url: 'cargar_distritos.php',...
asked by 24.10.2018 / 21:31
1
answer

Show phpmyadmin variable in PHP

I want that when editing the variable from the phpmyadmin change here. I hope to explain, because I do not know how to explain it. echo '$' . $rows_dbpartidos['color_local'] . ''; and it shows a code that I already have organized, for exam...
asked by 21.08.2018 / 22:44
1
answer

How to set a variable without php sessions?

I am doing a social network login using laravel Socialite, however I need to save a variable that is the origin of the page where you are registering. According to the documentation, I have the following methods in my controller. public fun...
asked by 25.10.2018 / 02:27
2
answers

Confirm before registering a form in PHP

Holas, I am creating a registration form that I would like you to confirm (YES or NO) before submitting. My code is the following but it does not work correctly, the window to confirm is shown but in just a few seconds without clicking anything,...
asked by 19.08.2018 / 18:58
3
answers

assign the value to a variable in the onchange event of the select

Well my problem is this: Since a while ago I have been trying to modify the select that appears in a table, this modifies the row where the select was changed but since the data is displayed by means of a foreach it only works with the fi...
asked by 17.08.2018 / 16:11
2
answers

Send id to script by ajax depending on the button that is chosen

I am trying to send emails to certain people depending on the button that is chosen, the table in the interface consists of two fields, the name of the person and the button that is going to send the mail when you click. This table is built b...
asked by 16.08.2018 / 22:08
1
answer

Errors when logging in

I am having many problems and I do not know how to solve it. I tell you about the problems that are emerging. The login fails random users, that is, one day it works or another one does not and so ... strange. users that I have changed the pa...
asked by 19.08.2018 / 13:01
4
answers

Why does 'jQuery' run twice?

js where I have 'jQuery', the problem is that I am executed twice. Someone can explain to me what is due and how to solve it please. Annex the jQuery ... $(document).ready(function(){ $("#botonExportar").click(function(){...
asked by 21.12.2016 / 00:23
3
answers

Problem filling OPTION / COMBOBOX / DROPDOWNLIST CakePHP

I'm having a problem wanting to fill a Combobox / dropdownList in CakePHP I fill it up like this: public function obtComunas() { $Comuna = $this->ManComuna->find()->select(['codigo_comuna', 'descripcion'])->toArray();...
asked by 20.12.2016 / 16:39