Posts by João Reis • 456 points
22 posts
-
0
votes2
answers1424
views -
0
votes2
answers698
viewsA: PHP Login does not load page
I don’t know what comic book system you’re using, but I’m sure: $result_usuario = "SELECT * FROM clientes WHERE email_cli = '$usuario' && senha_cli = '$senha' LIMIT 1"; $result_usuario =…
-
0
votes4
answers3952
viewsA: Preview more than one image before upload
Here are some tips to preview 1 image ;) In HTML you will have something like this: <form id="form1" > <input type='file' id="imgInp" /> <img id="blah" src="#" alt="descricao imagem…
-
0
votes1
answer762
views -
0
votes1
answer75
viewsA: Prevent non-logged users from accessing pages
Try using the magic method: __call that is activated every time you try to access some class function.
-
0
votes2
answers1848
views -
2
votes1
answer60
viewsA: Repeat loop with pair and sequential output
Array = Itens.text.Split(","[0]); int qnt = Array .Length; for (int i = 1; i < qnt; i += 2) { TextBox.Text = Array[i-1].text; TextBox.Text = Array[i].text; …
-
4
votes1
answer1518
viewsA: How to get hardware and system information?
I use the FOLLOW basically does what you asked: Documentation After downloading the SAGAR API.Jar and including it in the build path, an example of usage is given below: import java.io.*; import…
-
3
votes3
answers3151
viewsA: How to read a Json file
PHP has a function called json_decode $matriz = array(); $matriz = json_decode($json); which passes json to an array. never tested but should work , in case if the json is well built but if you…
-
0
votes4
answers115
viewsA: How do I not allow "<" and ">" in my Insert
Try to use this: if (strpos($_POST["texto"],'>') !== false || strpos($_POST["texto"],'<') !== false) { echo "Foi detetato > ou < no post!"; die(); }else{ // Executa sql aqui. }…
-
3
votes1
answer143
viewsQ: Use of % in HTML files
I noticed that some web pages use %header% and %footer% to put the header and footer among other things (I saw this in themes for Opengame Panel), I did not understand how they work and how the…
-
1
votes3
answers56
viewsA: Access to arrays of other HTML functions
function somethingOne(){ shuffle(array); ... } To access the Array outside a function the same must have Var array; // Fora de qualquer Funcao! // Then the functions here can use the same Array…
-
0
votes1
answer240
viewsA: jquery code and Chrome problem
You got the <script url="tuafontedoJquery"></script> added? That’s probably why the chorme does nothing because you don’t have any jquery in the cache.
-
0
votes1
answer148
viewsA: User registration system
Well that and simpler than it looks, just pass the bugs to the $_SESSION, and present them in the registration area. you have to start your code with session_start(); <?php session_start(); //…
-
6
votes4
answers545
viewsA: File Subdomain, Site Optimization
Depends on several factors, 1- If the domain continues to stay on the same server as the website, I don’t think I will get any optimization. 2- if you use some kind of technology to protect your…
-
1
votes3
answers727
views -
0
votes3
answers2326
viewsA: How to install the scipy library in python?
Try to use this: https://code.google.com/p/winpython/ Comes with Scipy already installed
-
2
votes2
answers160
viewsA: How to avoid Multiple Inserts in the database
You can use access tokens. a 1 and 2 pages must have session_start(); at the beginning and pass a token with a randomly generated number or code, making it impossible to access the page again…
-
0
votes1
answer61
viewsA: Problem with Chronometer
Just restart the Counter Variable For example if the variable is called: tempo have to put else if(running == true){ tempo = 0; chr.stop(); ahj.setText("Start Timer"); running = false; }…
-
1
votes2
answers4946
viewsA: How to create a Keystore at windows prompt?
you have to add the keytool as environment variable!
-
0
votes1
answer178
viewsA: C# + Postgresql = strange character
The best way is to use the ISO-8859-1 charset Charset ISO brings the characters you need and is more compatible with UFT8
-
0
votes2
answers739
viewsA: How to make my program executable?
It depends on the IDE you’re using. On the command line would look something like this: java NomeDoPrograma Note that the program name does not end with . class If the program has several packages…