Posts by Gustavo • 67 points
13 posts
-
0
votes1
answer79
viewsQ: PHP - Create an associative database array
I have the information below in a bank: And I want the result in an array like this: ['CLARO' => "IPHONE 8", "VIVO" => "MOTO ONE", "TIM" => "ZENFONE 6", "CLARO" => "IPHONE 8", "CLARO"…
-
1
votes1
answer264
viewsQ: PHP Ldap AD - Recognize user data automatically without login
I intend to make an application in PHP that does not need the user already beaten and password to login. As we have Active Directory here in the company, at first I thought to make the user when…
-
1
votes1
answer64
viewsQ: Show in PHP a query that is done directly in phpMyAdmin
I have a query ready (I didn’t do it) that every month I change the values of the months, copy and paste in phpMyAdmin (in the SQL tab) to run. She presents me with a very beautiful and structured…
-
0
votes2
answers916
views -
0
votes2
answers916
views -
0
votes2
answers916
views -
1
votes1
answer98
viewsQ: Delete (rename) PHP figures with AJAX
I have a page (up.php) that shows the following: I want to do the following, by clicking Delete on any of them, show up a fa-Cog centered on the image and then remove it from there. What I have so…
-
1
votes1
answer84
viewsQ: HTML + AJAX: Contact form
I have a contact form next to a google map. So far blz. But I’m catching in AJAX to make that when someone clicks in SEND appear an awesome font Gear and when successfully completed appear an…
-
-1
votes2
answers212
viewsQ: Decrease javascript dates
I’m trying to use Moment.js but it’s bone, see?!!! I have 2 fields that return the PHP date in the dd/mm/yyyy format. I want to show in a third field the difference between these dates. For example:…
-
0
votes1
answer568
viewsQ: Convert entire mysql database to lowercase
It is possible convert all columns of tables in a database mysql for lower-case letters? I have several records and several tables, all are a patchwork of upper and lower case (and some with…
-
0
votes3
answers285
viewsA: PHP + SQL Add two values from the same column
If someone is going through the same problem, here’s the answer: $result = mysqli_query($conn, "SELECT SUM(valor) AS conta FROM tb_valores WHERE id = 1 OR id = 15 "); $row =…
-
0
votes3
answers285
viewsA: PHP + SQL Add two values from the same column
That’s the answer that works, but it’s a very big code, I’d like to narrow it down. Someone?…
-
0
votes3
answers285
viewsQ: PHP + SQL Add two values from the same column
I have a table like this: And I need to add the value of id 1 to the value of id 15, saving to a variable in PHP. I’ve researched a lot but I couldn’t get anything specific to it. Thanks for any…