Posts by Victor H • 126 points
7 posts
-
-1
votes3
answers956
viewsA: Variable array assignment
You can use the function serialize() and the function unserialize(), among others. (JSON for example) Link to function documentation serialize Link to function documentation unserialize PS: I know…
-
1
votes1
answer825
viewsA: Check if the value already exists in the txt file
Hello! A solution would be to use the SQLite, would make your life a little easier! Sqlite documentation Tutorialspoint article about Sqlite with Java Another solution would be to load the file…
-
4
votes3
answers158
viewsA: How to reuse the connection in the subclass?
Modify the "Connect" class to: class Conecta { private $Servidor = '127.0.0.1'; private $Usuario = 'root'; private $Senha = 'senha'; private $Banco = 'banco'; // Protegido protected $Conecta; //…
-
2
votes2
answers188
viewsA: Saas System Traffic Collection
If you are hosting an e-commerce and crawlers browse through the site will be accounted for. What you can do to avoid consumption is to use the famous robots.txt. Example of robots.txt (Google)…
-
1
votes5
answers9469
viewsA: Hide HTML code
You can load the page contents dynamically with AJAX, using jQuery for example. That way, if Javascript is disabled in the browser, the content will not be loaded. jQuery has a method called .load()…
-
2
votes3
answers10480
viewsA: How to store multiple values in a variable?
You can save the sum to Session, so every time someone clicks on the link to the page checks.php, the value of the "value" variable will be added to another "total value" variable, saved to Session.…
-
0
votes4
answers1290
viewsA: How to bring a specific result of an SQL query above the others?
There’s a solution here: link ORDER BY (user_id.id=3) ...…