Posts by Gabriel Gomes • 149 points
9 posts
-
-1
votes4
answers9882
viewsA: Program to discover repeated characters in strings and print backwards
I believe it can be done so... To each element it compares with each and, finding an equal, increases the counter. #include <stdio.h> #include <stdlib.h> #define TAM 100 main () { char…
-
0
votes1
answer37
viewsQ: Doubt wordpress
I have a very basic question. I’m starting to use the Wordpress and would like to know what I need to do to configure the theme onepage. I download the template but when I install it it is in blog…
-
0
votes2
answers181
viewsA: How does an automatic categorization algorithm work?
It could easily solve by creating a table categories, which would be the tags, and another categorie_words. In that second you would insert words that have to do with the associated category. Dai…
-
3
votes3
answers466
viewsA: Comments weigh in?
Each character contributes to the weight of the file, but to negatively influence the performance has to write muuuuito, so comment freely. The comments are very helpful when we are doing code…
-
2
votes2
answers87
viewsA: Show on page total id’s registered in BD
You could bring in your own consultation <?php require_once("config.php"); $query = "SELECT count(*) FROM lista "; $total = mysqli_query($mysqli, $query); The Count function already shows the…
-
1
votes1
answer48
viewsA: Save content to your phone
I think storing data in Sharedpreferences is not a good idea. Instead, save the progress in a local database, Sqlite. Then when log in again just bring what has already been answered.
-
1
votes1
answer4618
viewsA: Div next to each other with bootstrap spacing
In this case you can use offset: <div class="col-xs-8 col-xs-offset-2"> <div class="col-xs-2" style="background-color: #F47B36; padding: 30px 10px;"></div> <div class="col-xs-2…
twitter-bootstrapanswered Gabriel Gomes 149 -
0
votes2
answers210
viewsA: JS seeking return JSON PHP
Try the following: if ($_GET['acao'] == 'buscaorcP'){ $qryOP = mysql_query("select * from orcamento_cab where status = 'P'"); $retOrcP = mysql_num_rows($qryOP); if ($retOrcP > 0){ $arrayJ =…
-
5
votes5
answers375
viewsA: Make <a> change href=" button on each new visitor ( IP ) on a given page
I would save each IP in the database making the condition to add only if it is not already registered. The function <? echo $_SERVER["REMOTE_ADDR"];?> takes the IP. If this IP is not already…
phpanswered Gabriel Gomes 149