Posts by Whatyson Neves • 472 points
21 posts
-
0
votes1
answer50
viewsA: Sending the form data for two pages
You can build a function to bind the data you intend to replace, for example, build an array (which you already have) with the data you want to replace and the respective values: $args = […
phpanswered Whatyson Neves 472 -
2
votes1
answer1289
viewsA: Warning: mysqli_query() expects Parameter 1 to be mysqli, integer Given
In this code you have, remove the line: $conecta_no_banco = require_once ('conecta_db.php'); and changes to require_once ('conecta_db.php'); and inside the archive conecta_db.php change your…
-
0
votes1
answer476
viewsA: HTML5 PHP data without refresh?
You can do something like this: html file. <!DOCTYPE html> <html> <head> </head> <body> <form action=""> <select name="ativo"> </select> </form>…
-
1
votes1
answer102
viewsA: What is the importance of filtering super-global?
Problem When you build a system that works with a database, this is the biggest concern you should have about the data that is received by the user. For example, when you have a login form where the…
-
1
votes1
answer97
viewsA: Identifying a page exchange in a PHP web system
You can try to detect this event from the browser back button with javascript in this way. But I’m not sure if it will fully work for the purpose you need: var url =…
-
3
votes2
answers319
viewsA: Foreach with PHP Stdclass
I don’t know if your class DB allows you to execute query queries, but, you could try Joins. a practical example for this your query would be: SELECT p.*, ap.dado1, ap.dado2, ap.dado3 FROM postagens…
-
3
votes2
answers142
viewsQ: how to query data in a table that is not related to the other table?
I have the following tables: CREATE TABLE IF NOT EXISTS `categoria` ( `id` INT NOT NULL AUTO_INCREMENT, `nome` VARCHAR(25) NOT NULL, `descricao` VARCHAR(100) NULL, PRIMARY KEY (`id`)) ENGINE =…
-
1
votes2
answers144
viewsA: Search in Clipping OAB
Based on the URL that you passed in the comment .. I put this together, but I warn you: Their system occasionally displays the recaptcha of Google , and by that I mean that after they detected that…
-
0
votes2
answers144
viewsA: Search in Clipping OAB
I searched what this OAB cutout is about and found out it’s a panel for a lawyer, right? Being, it is possible to connect and explore everything within this panel with Curl. This requires valid…
-
-3
votes1
answer197
viewsA: How to work with if and Else?
From what I understand you should inform what you want to insert where. A good tip to be very clear and organized is using the function sprintf() of PHP. Try something like this: <?php $q =…
-
1
votes1
answer37
viewsA: website with bank image and pagination items
You want all the work done, right ? rsrs I’ll give you a light here .. To pull the products from the bank, it is used: SELECT * FROM meus_itens To pull only 15 items from the bench, use: SELECT *…
-
1
votes1
answer295
viewsA: Problem with ajax and Curl to receive the mysql value and return to html
First.. It is unnecessary to use Curl when you are accessing your own script.. With the Curl request your site will make two requests instead of one, leading to this in the delay of the response to…
-
1
votes1
answer232
viewsA: How can I extract a character from a string in PHP?
From what I understand you want to pick up each separate line? If it is, you should rather blow up the line break. If this is the problem, do so so: <?php $a = ' | campo1 | nivel | campo3 |…
phpanswered Whatyson Neves 472 -
0
votes1
answer61
viewsA: My form only sends the email to the server itself
Try implementing your email triggering system with Phpmailer. After downloading and setting up on your desktop, do something more or less like this to trigger these emails. <?php require…
-
1
votes1
answer924
viewsA: Select field fill according to code entered in another field
Do you use Javascript? You can do this with AJAX. The jQuery library has the well defined and easy to use method.. You can have a PHP file returning a json and picking it up with AJAX.. For example,…
-
1
votes2
answers637
viewsA: How to decrypt a php code
I had a problem with a system that was all this way there, I made a script to decrypt it in a single beat, take a look here to download, I will put it below, where you need to edit only the line 21…
phpanswered Whatyson Neves 472 -
0
votes2
answers758
viewsA: How to create dynamic columns with Bootstrap and PHP?
If you want everything to stay inside a column of bootstrap size 4 you can do so too .. <div class="row"> <div class="col-md-4"> <div class="container"> <div class="row">…
-
2
votes2
answers1564
viewsA: Inserting a text input with a PHP button
Good evening, according to my understanding, your doubt can be solved with Javascript, more precisely the jQuery.. If in PHP, you want PHP to write the form, do more or less so using repetition…
-
0
votes2
answers46
viewsA: Problem with facebook share plugin
You can leave this well defined in the <head> of your page with the og goals .. Example of the site Tableless: <meta property="og:image" content="http://www.meusite.com.br/imagem.jpg">…
-
2
votes2
answers518
viewsA: Comments with Facebook for different news on site
Good morning. It is very easy to solve the problem you are having. In Facebook API there is a parameter to be passed in the code that you lock that comment object with the URL that you decide. If on…
-
1
votes1
answer48
viewsA: How to have more than one value for another table?
By my understanding of your question, you want to pull the data from two tables in one query, is that it? If it is, in the Thiago Belem there’s a great article that’s where I learned, and here has a…