Questions tagged as 'php'

0
answers

tracking positions in a php ranking

I have a ranking and I want to check if it is going up or down or if it was maintained, as seen in this example.    I came up with the idea that I could be adding a field in the table that stores the positions of the users but I'm not s...
asked by 08.05.2017 / 02:24
4
answers

URL in php (include) does not work

I'm trying to insert a file with include , but for some reason it does not work with the full URL. This works: <?php include 'menu.html' ?> But this is not the case: <?php include 'http://domainname.com/menu.html' ?>...
asked by 07.06.2017 / 13:36
3
answers

Syntax error in mysql script [closed]

$consulta = DB::Select(' SELECT nombrePerfilCargo, idPerfilCargo,porcentajeCargoHabilidad,porcentajeHabilidadCargo,c.Compania_idCompania FROM cargo c LEFT JOIN cargohabilidad ch ON c.idCargo = ch.Cargo_idCargo LEFT JOIN perfi...
asked by 01.03.2017 / 14:23
3
answers

Enter conditional ternary in PHP [duplicated]

I do not know how to include a conditional in a input that is shown through PHP. I've tried with: echo "<input type='text' name='status' placeholder='Introduce un estatus' value='" . if(isset($_POST['guardar'])) { $ubicaci...
asked by 04.04.2017 / 11:35
1
answer

Problems with .htaccess in Apache2 Debian

I have installed on my local server (xampp + wordpress) a page with wordpress where I have a file .htaccess , this file is located in: xampp\apps\wordpress\htdocs\Directorio\.htaccess along with all my files .php , here everyt...
asked by 21.04.2016 / 13:17
3
answers

How to edit the footer of a Wordpress

I want to put the links of the privacy policy and cookies in the footer of my website: link , but the topic that I use does not have the footer as a widget so I have to touch the code. I know that the problem with this is that when I update the...
asked by 31.05.2018 / 21:05
1
answer

Build content from several sub elements of an array in PHP

In PHP I receive an array organized in the following way: [1] => Array ( [id_liturgia] => 0000000001 [antifonas] => Todos los días me sentaba en el templo... |El Señor me ayud...
asked by 17.06.2017 / 11:37
1
answer

problem when sending comments are repeated

I am creating a system of comments in php and jquery everything is going well until I try to send a second comment also send me the previous one and so subsistently, hopefully and you can find my error here is my code coment.php <div id=...
asked by 08.07.2018 / 05:52
2
answers

Get user id logged in

How about, I'm trying to get the id of the logged in user within a function to be able to create a query (I do not know if the way I show it is correct). What I've been up to now is this: function obtener_notificaciones($conex...
asked by 06.06.2017 / 02:49
1
answer

Get value of a variable knowing the ID and add it in Open graph

Dear, I have the following question, I have tried several possible solutions but I have not achieved it. I have a form with a Select and 2 textarea fields. The fields are "Brand" with the variable $ fid = 15, Model with the variable $ f...
asked by 07.04.2016 / 02:00