Posts by Artur • 112 points
20 posts
-
0
votes1
answer46
viewsQ: How to use several sites in Ubuntu Dedicated Server?
Hello, my friends! Context: I have a dedicated server to host web applications. The root directory of it is default/var/www/html of any server. I want to host, first, a website. In the root folder…
-
-2
votes3
answers569
viewsQ: How to make an interactive background?
I’m on a new project and I have a question. I would like to make the background (which is a simple gradient covering everything) of the home (home page) change its color tone according to mouse…
-
1
votes1
answer231
viewsA: URL friendly redirects to index.php
Don’t even need it, just use the .htaccess thus: <IfModule mod_rewrite.c> RewriteEngine On #URL's Amigáveis - friendly urls RewriteRule ^index/?$ index.php [NC,L] </IfModule>…
-
1
votes2
answers868
viewsA: Is there a way to open an HTML page within a modal? How?
Marconi gave the solution of using iframe, which is not very recommended (is that actually, depends on the application, if it is only this modal and is simple thing has no problem, but imagine…
-
0
votes2
answers124
viewsA: How to know if a record has been made in the database?
You didn’t detail very well what you want, but I’ll try to make an example. Let’s assume it’s a product, and you get its name and id by a function: function trataProduto($conexao, $nomeProduto,…
-
0
votes0
answers50
viewsQ: Query of multiple Mysql data
I’m doing a chat and I have the following table in the bank: I want to list the last 5 conversations of a user, but the query is very complex, I’m for a while trying to solve with Queries, but I…
-
1
votes3
answers4951
viewsA: Json PHP and Mysql
Do the following: use mysqli_fetch_assoc(), it returns the results associated with the table name, I think it looks something like this: <?php $con =…
-
1
votes1
answer62
viewsQ: How to group notifications
I want to make a system of notifications that come together when they’re the same type, like the ones on Facebook. For now I have the table with the following columns: user_id (person receiving the…
-
1
votes1
answer531
viewsQ: Ajax requests in parallel
I’m with a system that has some things that uses long Polling, it disturbs everything, any button you click (that makes an Ajax request) will take long because it has long Polling running. Ajax by…
-
0
votes1
answer383
viewsQ: Php does not read POST data
I created a form that will be submitted via Jquery, more specifically: http://malsup.com/jquery/form/. Well, send the form, the php file is recognized, it returns the error messages and everything…
-
0
votes1
answer64
viewsQ: Load variables in external php
I have a page that I need to open several modals, not to compromise in loading the page I decided to call the modals only when the user requested it. I did the following AJAX function: function…
-
0
votes0
answers37
viewsQ: Is it right to identify the columns in the database tables?
I have a question: In large projects, which require a lot of relationship between the tables, many Joins, identify each column with the table, for example: Instead of: Table name: users id | name |…
-
0
votes2
answers1217
viewsA: load a div with a php page
I do the following, get the name of the page by GET, and the original name of the files are the same as the possible Gets. It is very basic to include the page: $pagina = $_GET['pagina']; //Faz uma…
-
1
votes1
answer114
viewsQ: Position div across the screen
I’m creating a home and want to position a div (with a background image) across the visible screen when the page loads. I did it this way: .home-entrada{ position: absolute; bottom: 0; top: 0;…
-
1
votes1
answer152
viewsQ: Variables in friendly Urls
How are you? I am doing the user profile and there are 3 tabs, IE, three areas that users can navigate. For profile, I rewrote as follows on . htaccess: RewriteRule ^profile/([0-9]+)/([a-z0-9-]+)/?$…
-
0
votes2
answers1061
viewsQ: Scroll from bottom to top
I have a div that encompasses a chat, I load the last 15 messages, but the problem is that I want her scroll to start from top to bottom, that is, from the newest to the oldest messages. NOTE: This…
-
0
votes1
answer44
viewsQ: Dropdown opening with click
how are you? So, I’m trying to detach from bootstrap in this project that I’m doing (to improve my front-end practices and also because I’ve done a lot of site styles, if I implemented bootstrap…
-
0
votes1
answer289
viewsQ: Multiples Ckeditor on the same page
I am creating a system in which the user can put as many textarea as he wants, the system is already ready. The code to do this is this: function addPergunta(){ pergunta++; var corpo = "<div…
-
0
votes2
answers635
viewsA: Anchor for Bootstrap tabs
Follows the codes: <li><a data-toggle="tab" id="botaoFinalizar" onclick="confirmarEnvioQuestionario();">Finalizar</a></li> The one on top is the Button to finish (I didn’t…
-
1
votes2
answers635
viewsQ: Anchor for Bootstrap tabs
Hi, I’m doing a question and answer panel, where I use the bootstrap tabs to better organize the questions. I wanted every time the user answered a question, jumped to the next one, but I can’t do…