Posts by Neyelson Alves • 73 points
7 posts
-
0
votes1
answer102
viewsA: DB Query inside a foreach loop is making my page slow
That’s the answer I was hoping to see: public function index() { $posts = DB::connection('mysql2') ->table('wp_rocketsciencebrposts') ->select('ID', 'post_title', 'post_status', 'post_author',…
-
-1
votes1
answer102
viewsQ: DB Query inside a foreach loop is making my page slow
The code below is used to show a table with 15 results on a page. For this, I am using two different databases, one of them is a wordpress database and the other is a personal database that I…
-
-1
votes1
answer1311
viewsQ: How to show/hide a sidebar based on screen size and push a button?
I built a custom sidebar for my dashboard. Inside this sidebar, I have some menu items. When my screen is small, I make all menu options disappear, and show you a specific menu option. This specific…
-
2
votes2
answers1461
viewsQ: Read a txt file and place each character in a position of an array in C
I tried the code below, but it didn’t work The big problem is fscanf placing each character of the text in an array position #include <iostream> #include <stdio.h> using namespace std;…
-
1
votes1
answer100
viewsQ: How to apply "goto" to quicksort? (c, c++)
I’m doing a job for my college where I ask for a quicksort algorithm to be done in C, using "goto" as much as I can. In the code below I applied the "goto" as far as my knowledge allows, but I would…
-
4
votes1
answer763
viewsQ: How to perform operations with really large numbers in C/C++?
How to perform sum operations with really large numbers? Numbers that can reach 50 or 1000 digits. Is it necessary to install a library? How to install this library in Ubuntu? You can post some…
-
0
votes1
answer70
viewsQ: How to return values from different columns without repeating?
I’m trying to capture and print on the screen all the categories of a table, but I wouldn’t want them to repeat themselves. Note that there are 4 columns of different categories below:…