Posts by Carlos H. Araújo • 89 points
5 posts
-
0
votes2
answers5665
viewsA: Check duplicate values in the array
To display a shape using php’s native function array_diff_assoc: <?php //array $arr = array(10, 30, 80, 40, 40); //function function checkDuplicateElementArray(array $arr){ $toCompare =…
-
2
votes3
answers80
viewsA: Know the total values in the php array
Another example of how to use array_filter (as its name already makes clear. A function to filter certain information in the array) and Count (used to count elements), created the function…
phpanswered Carlos H. Araújo 89 -
2
votes3
answers12463
viewsA: How to select last Mysql table record with last or another command?
It’s been a long time since that question, but follow the answer. SELECT MAX(id) as maxId FROM table
mysql-workbenchanswered Carlos H. Araújo 89 -
1
votes1
answer56
viewsQ: How to improve QUERY
As I could improve this query, it returns me 30 records from a table that contains 43thousand records. NOTE: I use index in the core column (much improved). ((SELECT id,situation,info FROM request…
-
2
votes1
answer101
viewsQ: How to open a form with just the name of the type
I have a DataGridView in my form, remembering that it gets the name of the Mysql database forms. I’ve tried a few ways to click the form name on DataGridView and open the same, but did not succeed.…