Questions tagged as 'php'

3
answers

Ajax does not send the value of the data to php

I have a parameter that I send to a javascript function, when I make an alert of that parameter it shows me its value, there everything is correct. The problem is that I want to send this parameter via Ajax to a php file, but I think it is not d...
asked by 22.05.2018 / 18:53
1
answer

Help with PHPMailerAutoload.php

I am trying to send an email using the php library that is PHPMailerAutoload.php The reason I use this library is to retrieve a user's password. NOTE: I am using gmail. I have the code configured this way: //Método getValor function getValor($...
asked by 05.09.2017 / 00:12
1
answer

Multiplication and sum in MySql or php

I need to perform the following operation of the following table in mysql or php: I need to calculate unit_value by quantity (unit_value * amount) and add all the values when the nonreceiver is equal to 11 (where no_recibo = 11). I n...
asked by 06.09.2017 / 04:50
1
answer

Error knowing if a MySQL table is empty

I have the following php code and it does not detect me if there is a record in the table or not and I do not know what it can be: $server = "localhost"; $user = "root"; $pass = ""; $bd = "crypto4all"; //Creamos la conexión $conexion = mysqli...
asked by 14.05.2018 / 20:35
1
answer

Error in printing data echo - PHP

I am printing a Urls with several data in a single echo the url to print is: http://localhost/prueba/profile.php and the values of the variables are: $ url = http:// $ host = localhost APP-RAIZ = prueba...
asked by 29.09.2017 / 23:30
2
answers

Problem using json_decode () (Array to string conversion) php

I'm trying to use json_decode () as follows: <?php //Este es el json $fol ='[{"name":"Taili Silva","screen_name":"taili_silva","id":837254166619770880,"id_str":"837254166619770880","connections":["following","followed_by"]}]'; $str =json_d...
asked by 30.09.2017 / 02:55
1
answer

Problem redirecting from the controller

When registering a user I send and receive from the model in the following function: $respuesta=Datos::RegistroUsuarioModel($datosusuarios,"usuarios"); if($respuesta == "success"){ header("location.index.php?action=ok");...
asked by 17.08.2017 / 19:26
1
answer

What is the MIME Content-type for PHP files?

I am trying to execute a PHP file and I need to know how its MIME Content-type is so that it can be executed correctly in a browser. What is the MIME Content-type that should be used for .php files? Greetings and thank...
asked by 31.08.2017 / 20:31
1
answer

jQuery table sorter does not sort my tables when I get data from MySQL

I apologize for the code, I'm learning, it's probably a disaster, but I can attest that the database connection does it well just like the query just that the script does not run correctly, I tried a table filled by hand without asking mysql and...
asked by 20.08.2017 / 22:37
2
answers

Warning: session_start (): Can not send session cache limiter - headers already sent

I uploaded my page to 000webhost and when I log in, everything goes fine except that I see this error    Warning: session_start (): Can not send session cache limiter - headers   already sent (output started at   /storage/ssd5/679/2763...
asked by 31.08.2017 / 21:51