Questions tagged as 'php'

0
answers

Function within an if else

I have the following function in PHP function verificar_status(){ global $db, $username, $usua, $ci_nro_cuenta, $monto, $nro_transf, $banco_emisor, $banco_destino, $fecha_transf, $status_pedido, $fecha_pedido, $status_pag...
asked by 08.09.2018 / 15:53
0
answers

Android HttpUrlConnection readStream

Something incredible happens to me and I already provide everything but I could not find the result, and the worst thing is that I do not know why this happens, where the error is. I'm working with HttpUrlConnection, everything works perfect,...
asked by 08.09.2018 / 12:52
0
answers

Problem with .get with php using ajax

I have the following form on my website: I am trying to make sure that, in the selection of subjects, the subjects are loaded according to the chosen career. I read that you can do this type of operation, without reloading the page, thr...
asked by 08.09.2018 / 03:00
0
answers

Update two records of a table without having the ID

I have a table that I want to update, where I am relating the PKs of three tables: Work teacher rollprof The table I want to update is structured in this way: CREATE TABLE IF NOT EXISTS 'sgtegcom'.'docente_has_rollprof' ( 'idd' INT...
asked by 26.08.2018 / 23:09
2
answers

Print reserved PHP variables, in double quotes

I have worked constantly in single quotes, that I have completely forgotten the use of double quotes. Today I had styles in a file, among others like this: echo '#parent'; and I had to migrate to echo "#parent"; And now how can I op...
asked by 26.08.2018 / 19:35
1
answer

call from ajax to php in the same file

I have two files, one where the ajax code is located and another one where the php is. Can you call from the URL in ajax to the PHP code within the same file? Something like in html: <?php $_SERVER['PHP_SELF']; ?> but in ajax $.ajax...
asked by 26.08.2018 / 00:20
1
answer

Fatal error: Wrong parameters for Exception

I'm having a problem generating a charge from an internal application with the MP button. Previously I was throwing an error in line 508, which I could "correct", but now, when executing said button, it throws me the error:    Fatal error:...
asked by 23.08.2018 / 16:20
0
answers

PHP IO socket only connect a few times

I have a huge problem, and that is that I am trying to connect to a socket with SocketIO from a client and sometimes it connects as sometimes it does not simply. It really is very annoying because it is a huge problem that this happens. This...
asked by 23.08.2018 / 14:25
2
answers

Sort array that brings all the elements in another array and classify the values

I do not see any way of asking it in a technical way, so I will be supported with images. I have an array which I get in a request in Laravel 5.6 that contains the following values: The idea is to pass them to another array so that they...
asked by 23.08.2018 / 17:01
1
answer

$ _SERVER ['PHP_SELF'] + href

I have the following code that contains php_selft. When the checkbox is checked, it immediately updates an information and the page, but I need you to direct me to a particular part of the same page as well how does the work <a href="#vis...
asked by 25.08.2018 / 00:17