Posts by Junior Zancan • 293 points
15 posts
-
1
votes1
answer80
viewsQ: Multiple Mysql Banks?
Good night. I’m creating a PHP system that looks like a virtual shopping mall (several "stores" and each store with its products). For this I need to store data from users, stores, businesses,…
-
1
votes1
answer46
viewsQ: Saving users in BD
Good morning. I have a login and registration system via PHP, with Mysql database. In this database I have a table with login, password, name and other user details. When implementing Facebook…
-
0
votes1
answer1372
viewsA: Script to check if the CPF matches the name
The formation of a CPF number does not take into account the name or date of birth of a person, that is, it is not possible to do such verification by calculations or something like. It would only…
phpanswered Junior Zancan 293 -
-3
votes1
answer47
viewsQ: Am I validating twice?
Hello, I have a Select in a form with values only integers. When receiving this information in PHP, I make the following validations: Because I’m already wearing (int) on line 297 and line 302, my…
-
1
votes1
answer154
viewsA: Add specific keys obtained in SQL query - PHP
I may be mistaken, but you can achieve this in SQL itself using SUM() and GROUP BY. Try running the following Query in your table (check the names of the fields if they are right): SELECT *,…
-
0
votes2
answers1190
viewsA: Swap Hidden field to text with javascript
You can do it in two ways using jQuery. The first, you change the type=hiddenfor type=text using the function .attr() Example: /*Para mostrar*/ $("#calcFeito").attr('type', 'text'); /*Para ocultar*/…
-
1
votes2
answers240
viewsA: INSERT CONCATENATE PHP MYSQL
I don’t quite understand, you want it depending on the id, the post title has a predetermined prefix? For example: Título original = "Alguma coisa" ID = 1 Prefixo = "TESTE" Titulo final =…
-
1
votes1
answer66
viewsA: How to redirect in the address bar with php ex: /open/? page=?
I don’t quite understand which part of it is your question, so I’m going to break it down into two answers. First of all, what happens to this /? is that usually the address of the page itself…
phpanswered Junior Zancan 293 -
2
votes1
answer96
viewsQ: Paging in SQL
I have a doubt here, not even for the sake of code, but for the sake of what logic. I have a table with 6000 records in Mysql. I have a PHP script that returns 50 records per page, using SQL’s…
-
0
votes1
answer140
viewsQ: Doubt about data return in PHP POO
I’m learning about object-oriented programming in PHP, classes, hierarchies and so on. Reading a few topics right here on stackoverflow I found the solution to my problem with the user control…
-
4
votes3
answers703
viewsQ: Prevent Bootstrap Oil
I am using Bootstrap on my site and I am making a bar with navbar. The menu consists of a Brand, 3 "li" items, a search bar and a link. How could I do so when using on smaller screens or even when…
-
1
votes1
answer66
viewsQ: CSS - Display centered text with another side-aligned text
I own a div 70% page width with centered text. I need to put a sentence in the right corner but in the same line as the original text, without disturbing the centralization of the original text.…
cssasked Junior Zancan 293 -
0
votes0
answers75
viewsQ: Fancybox and Ajax
Good afternoon guys. I’m having trouble with the Fancybox here and I wanted to see if anyone has managed to do it. I have a PHP script that takes 3 POST variables (latitude, longitude and accuracy)…
-
1
votes2
answers682
viewsQ: Problem with resizing PNG images in PHP
Good night. I’m with a virtual store script here, but I’m having problems with PNG images. When uploading an image like this: . The script checks the extension based on mimetype, "sanitize" the file…
-
2
votes3
answers2091
viewsQ: Place an image in the center of another image in PHP
I have an image . png of for example 200x200px. I need her to stay with 300x300px, but without enlarging the image, just by putting it inside and centering on a 300x300px white square. Is that…