Posts by Alceu • 409 points
20 posts
-
0
votes1
answer195
viewsQ: Permissions error in Wordpress - Nextgen Gallery
Hello! I am using the Nextgen plugin in Wordpress and now it is presenting the following error when I will create a gallery: Could not write to file. Please check filesystem Permissions. Filename:…
-
0
votes0
answers51
viewsQ: Meta box with post features
Hello! I made a Wordpress theme with some meta boxes in the custom post type, but I needed to use some plugins in these meta boxes, but they only work in the main box right there in the post. How do…
-
1
votes1
answer423
viewsQ: How to limit the overall number of Wordpress posts from two different loops
Hello! I have two loops in my WP index, but I need a maximum of 3 posts in total. If I decrease the number of posts per page to 3, it will change this to EACH of the loops, only I need to limit the…
-
4
votes3
answers30960
viewsQ: How to query in Mysql with two different conditions in WHERE
I have two queries that work perfectly separately, but I needed all their records together. Would be these: SELECT b.idBanca AS idB, b.DataHora AS dataHora, b.Sala AS sala, t.idTrabalho AS idT,…
-
4
votes2
answers1405
viewsQ: How to send two values per parameter with a single option selected? PHP
I need to send two values per parameter to another page, however value select tag only sends one... How could I send two? Follows the code: <option value="<?php echo $data->format("d/m/Y");…
-
0
votes2
answers5645
viewsQ: How to compare all positions of an array in PHP
I filled my two arrays that I need to compare perfectly, but I can’t compare all positions... That’s the case: foreach($periodo as $data){ $arrayDiasSemestre[] = $data->format("w"); }…
-
0
votes1
answer155
viewsQ: Filling array with different data, but same range in PHP
I have the following code that is working perfectly, but I need the results within the $arrayDiasSemestre are '1' to the Monday, '2' to the Tuesday and so on... $inicio = new DateTime($start_date);…
-
0
votes1
answer66
viewsQ: Mysql query with undesirable items - PHP
I need to compare two arrays that come back from Mysql, but one of them is coming back with several strange items, making it impossible to compare. I already trained in the search to return only the…
-
3
votes1
answer903
viewsQ: How to go through and compare two arrays in PHP
I have two arrays that return a Mysql query. I need to compare these two results to, every time they’re different, print something on the screen. The problem is that the query coming back from the…
-
-1
votes1
answer658
viewsQ: Create a foreach with a specific condition in PHP
I have this condition: if (date('Y-m-d', strtotime($arrayBancas['dataHora'])) == $data->format('Y-m-d')) And I also have an array. For each array entry I need to check the condition and show on…
-
5
votes1
answer175
viewsQ: How to run only one if without entering the other in PHP
I have two if parallel and I need to enter one OR the other, not both. But because I am inside one while with the first if, I couldn’t put just one else, having to do another if outside the while.…
-
2
votes2
answers922
viewsQ: How to bypass table tags that are inside the foreach in PHP and HTML
I need to assemble a schedule of days and events. When one of the days of the event is equal to the day of the table, it has to appear on the screen in the correct place. I’m already being able to…
-
0
votes1
answer733
viewsQ: Comparing dates of an array in PHP
I’m trying to compare the dates that come from a database array to be able to organize them within a timeline. The problem is that I can’t compare the dates to know where to place each entry...…
-
3
votes2
answers1246
viewsQ: Scroll through dates by printing a field for each
I’m making a system kind of like a calendar / schedule. In it I have a table semestre who has a field data de incio and one of data fim and I need to go through these dates by printing the name of…
-
0
votes1
answer136
viewsQ: Sessions on a login system
I made a login system in PHP where, after authentication, I go back to the page index.php. So far so good, the problem is that when I redirect the user to the index.php again, it asks me for login…
-
2
votes1
answer161
viewsQ: Sessions in PHP
I’m working on a system that has a general search filter on the home screen. For this, in my header I put a select/combo box and a button 'OK'. To treat this I decided to use Sesssions, where I can…
-
2
votes1
answer129
viewsQ: Problem with mounting SQL query
I have a table of "disciplines", a table of "students" and a table of "students" where these students may be enrolled in one or more disciplines. These disciplines are shown as checkboxes on the…
-
2
votes2
answers538
viewsQ: Concatenate array of selected checkboxes to use as a search filter
I have a search with several checkboxes that can be selected and added dynamically by the user. Since I don’t know the amount, I was thinking of doing the following: go through all of them and…
-
1
votes1
answer1578
viewsQ: Problem to retrieve dynamically added array fields[]
Hello, everybody!! I have this script that adds fields dynamically in my form, but I can’t go through the values added by it, I can only get the first value of the field that already comes on the…
-
2
votes2
answers1056
viewsQ: I can’t remove the fields I just planted
I needed to insert some fields dynamically and I found a video lesson that showed how to do it. However, after doing everything right, my code does not remove the ones I just entered. Where is the…