Questions tagged as 'php'

1
answer

Trying to build a path with php variables

In a page I show the data of a user among them I have stored the photograph that is stored with the number of user id in a folder that is the user id. I mean, the route would be /images/usuarios/{idusuario}/{idusuario.jpg/png} and to show t...
asked by 03.08.2017 / 18:29
3
answers

Print an array of dates

Array ( [Monday] => Array ( [0] => 2017-07-03 [1] => 2017-07-17 [2] => 2017-07-31 ) [Friday] => Array ( [0] => 2017-06-30 [1] => 2017-07-14 [2] => 2017-07-28 ) ) My goal is to get...
asked by 03.07.2017 / 15:29
2
answers

Help with extracting URLs with php

How can I extract a specific url from a website? Because the url of this web is dynamic I would like to extract it and follow it with php and turn it into a url of mine. Example: See internal code and extract url from mp4 video from: www....
asked by 06.08.2017 / 04:13
2
answers

somebody could explain this code to me, I want to connect to a database, for a search engine in android studio, but it does not connect me

<?php $servername = "localhost"; $username = "root"; $password = "Engineringg96"; $dbname = "tbl_fish"; try { $connection = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); $con...
asked by 05.07.2017 / 19:36
1
answer

Error while traversing PHP associative array

Good afternoon, I have the following question: Why is not the value in the column I want to access displayed on the screen? I have this PHP code with which I verify the login of a user. public function verificarUsuario($nombre_usuario...
asked by 10.07.2017 / 20:38
1
answer

ORDER BY in PHP that does not ORDER nothing at all

I have a query in mysql When I do it through PHP, I simply ignore the ordering as I need it (whatever field I try to order it from). The problem is in PHP that's why I pass the code that I have to call that query: $diaActual = date("Y-m-...
asked by 11.07.2017 / 13:45
2
answers

Where can I put the TH in this table?

Hi, I have this table where I show a result, but when I put the TH, the TH is repeated the number of times according to the result. <head> <!--<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> --><s...
asked by 12.07.2017 / 04:08
2
answers

Help with getting the id of a PHP / MYSQL form

Good I have a problem to obtain the id of a form: I have in my database a table called assistances which I want to edit an observation by form whenever I want. in my list I have: <html> <head> <body> <?php inclu...
asked by 10.07.2017 / 20:46
1
answer

Does not validate conditional with array in php

I have a form that adds the total amount of all the installments. I put a conditional where it tells me if the array has data print me the total otherwise I print a message. I do not know what my error is, but it does not print the message. I...
asked by 06.07.2017 / 15:56
2
answers

Fill table with Select mysql

Good afternoon, I need to fill a datatable of jquery with the data brought from a select with the filter of a parameter, select the filter from a checkbox and pressing a button displays the data in the table The query works, but when showing the...
asked by 06.07.2017 / 18:51