Questions tagged as 'php'

2
answers

Concatenate array of selected checkboxes to use as search filter

I have a search with several checkboxes that can be selected and added dynamically by the user. As I do not know the quantity, I was thinking of doing the following: go through all of them and go concatenating with AND and use that in the...
asked by 08.06.2014 / 05:45
2
answers

Show users online

asked by 26.03.2014 / 03:43
3
answers

Ask before deleting bank data

I have this code: <?php if ($result = $mysqli->query("SELECT * FROM usuario ORDER BY id")) { if ($result->num_rows > 0) { echo "<table border='1' cellpadding='5' cellspacing=0 style=border-collapse:...
asked by 23.09.2014 / 20:22
4
answers

SQL query returns total days in a month on two dates

I have the following tables: official : official_id other information ... history : official_id data_entrada data_out I tried some querys but could not get what I wanted. What I need is, after the user has chosen a mon...
asked by 31.08.2014 / 04:06
4
answers

How to generate an array with the list of uploaded files?

Type I want to generate an array like this. array('nome1', 'nome2', 'nome3',) What I have is the string $ name, how do I generate the above array? would be something like array($nome) ?? My code if (!empty($_FILES['files'])) {...
asked by 07.01.2015 / 19:55
2
answers

How to save space in audit log?

I was creating a system that would give me data from my users according to the date I requested, from X to Y for example. And the only way I found it was to create a table like this: date with date inserted in DATE format name...
asked by 27.12.2014 / 18:55
2
answers

How to get the host name in URLs?

How to get the name of the host from a URL like Mega, 4shared among others with PHP? In case you would like to know having this URL as an example:    link How can I get from this URL only the word MEGA discarding everything...
asked by 21.01.2015 / 19:17
2
answers

Read phpMyAdmin column with multiple records

I have a table in phpMyAdmin with a field that stores several values, the column is named as subfilter id, I need to read each value of that, since they are id's that are related to another table, the field is a varchar. p> The table is this,...
asked by 29.01.2015 / 01:16
3
answers

Delay in loading PHP page with image

I have a PHP page that loads the 570 records in 2 seconds. The problem is that when I insert images, even if small (3 KB) the loading time goes to 10 seconds. Do you have any way to load these images? <?php while($consulta1 =...
asked by 16.01.2015 / 18:46
2
answers

How to get value from a variable by file_get_contents

I have a script that sends a newsletter, at that moment I get a .php page from file_get_contents('news.php') In the news.php page I tried to get the variable using this: $email = $_REQUEST['email']; On this page news.php I created a li...
asked by 17.02.2015 / 19:36