Questions tagged as 'php'

1
answer

fetchColumn vs. columnCount

colsulta SELECT that a single record should return if it exists, what's valid with if ($stmtStore->fetchColumn ()==0){...} and the redultado is true and the valid one with if ($stmtStore->columnCount ()=...
asked by 01.12.2018 / 02:04
1
answer

Insert text in input text in another web with php?

How can I insert text in input text from another web with php? How can I press a button on another website with php?     
asked by 28.12.2016 / 13:12
1
answer

Someone could give me an example of friendly numbers in PHP

Help with an example of checking friends numbers in PHP, I can not find any example or tutorial on the web Two positive integers A and B are friendly numbers if the sum of the proper divisors of A is equal to B and the sum of the proper divis...
asked by 04.12.2018 / 22:40
2
answers

base64_decode in wordpress

I am trying to save a coded with base64 in the table posts_meta of Wordpress for later get that field, decode it and show the content, but somehow it makes an "escape" of all the quotes so that the Html after being decoded appears li...
asked by 08.05.2016 / 13:16
1
answer

Compare two chains, apparently they are the same

I'm trying to compare 2 string . the first I get it from a array , the second I get it from reading a directory. The problem is that I'm trying to compare that the name of the array matches that of the file that is reading and are id...
asked by 08.04.2016 / 21:41
3
answers

Default value to an input in HTML

I have a form that will register your name, surnames, etc. and I have a field that asks for a number, I already register well, now I would like it if the number field is empty that I insert something by default, example: 0. In the form I get...
asked by 11.04.2016 / 18:44
2
answers

Show value $ _SESSION with JavaScript

I'm painting HTML%% of PHP and I need to handle it with JavaScript. html.php <p id="elem" value=" <?php echo $_SESSION['variable']; ?> "></p> The result of this operation is: <p id="elem" value="0"></p>...
asked by 13.04.2016 / 20:59
3
answers

How to get recursively retrieve values from a php array?

I take care to know how to go through a multidimensional array in php and get its values. The arrangement corresponds to a multilevel menu. In the Array of the image I need to extract the ID of the array, and in case an ID is inside a childre...
asked by 24.06.2016 / 06:38
1
answer

How to show the data of a logged in user

Good, some way to show the data of a logged in user? I need that after a user logs in, in another page show me the data of this user: I have two tables: And this is my code with which I am validating and trying to extract the user...
asked by 26.06.2016 / 10:27
1
answer

Problem with PHP

I have an HTML code to send a form that carries a photo. <form method="post" enctype="multipart/form-data"> <input type="file" name="imagen_subir" id="imagen_subir"> <button type="submit" class="form-control btn btn-dang...
asked by 22.06.2016 / 05:06