Posts by Vinicius De Jesus • 686 points
59 posts
- 
		1 votes3 answers159 viewsA: Error in php/mysql registerAs I said in a comment, there is a logical error in your code. <?php require_once ('connect.php'); //recebendo os dados $user = $_POST['user']; $email = $_POST['email']; $senha =… 
- 
		1 votes2 answers316 viewsA: How to place an image in a link in the footer?Just put the image as tag content <a href="" > <img/></a> <footer id='rodape'> <a href="https://linkedin.com/seu-perfil"><img class="rodape-baixo"… 
- 
		1 votes1 answer198 viewsA: Update table after closing modalWhile not the best course of action, I will leave this answer as a warning to a next question. Nowhere in your code is there anything that changes your table, as you think it should work for your… 
- 
		0 votes1 answer159 viewsA: Sending Ajax Information to ControllerAccording to my new understanding of the answer you need that by changing the option of a select, the value of option be sent to your controller. In case I’m wrong correct me. Example: <body>… 
- 
		2 votes2 answers90 viewsA: Taking PHP array valuesUse a foreach to scan the array and an if to check each array within the larger array foreach ($editora as $editora) { //substitua o '1' pelo valor que achar melhor if($editora['idEditora'] == '1'){… 
- 
		-1 votes2 answers76 viewsA: Reserve image - SRCSimple, make a if by checking whether the variable $username has some value, which in the case is the name of the image, if there is no content in the variable add the link to the default image.… 
- 
		1 votes2 answers35 viewsA: Pass Form + Variable by AJAXIf you give a.log(data) console, you’ll see how the data is organized with a pattern like this [nameTag]=[value], if you have an input <input type="text" name="nome" value="Vinícius"> in your… ajaxanswered Vinicius De Jesus 686
- 
		0 votes1 answer29 viewsA: my html page gets ? (but I’m sending things via post). http://localhost/Systeemaaline/formulario.html?This is because most likely your shipping method <form> is as GET, or not even configured. suggest adding the following tag method='POST', to your form. Example: <form method="POST"… 
- 
		0 votes1 answer62 viewsA: How to pick up value from a button without a formHere is an example of an AJAX call, but your question is very incomplete, I suggest that in the next questions, study more on the subject try to develop alone and come up with more specific doubt… 
- 
		1 votes2 answers196 viewsA: Create plot fieldsExplanations in the comments in the code, any doubt just add a comment. $("#melhorDia").change(function() { let valor = $("#valorCurso").val(); let pago = $("#valorPago").val(); let parcelas =… 
- 
		1 votes1 answer44 viewsA: How to display 2 arrays in a foreach?<?php $array = ['Hello', 'World']; $array2 = ['Hello Girl', 'Hello Boy']; foreach($array as $indice => $text) { echo $text; echo $array2[$indice]; } ?> This way will be printed the $array… phpanswered Vinicius De Jesus 686
- 
		0 votes2 answers82 viewsA: Check if user already exists codeigniterFrom what I understand, your problem is in running the search by the amount of benefits that arrive by post $nomes = $this->input->post('nome_dep'); foreach ($nome as $nome) { $nbanco =… codeigniteranswered Vinicius De Jesus 686
- 
		1 votes1 answer39 viewsA: Group data into a php table according to the disciplineI believe your title is repeating itself because it is being printed inside the loop foreach(), I believe it’s just to print it before the loop: REPLY <?php $curType = '';… phpanswered Vinicius De Jesus 686
- 
		0 votes1 answer42 viewsA: How to save a specific id (problem) in another section?It’s very simple, you should create in your database a flame column status when the problem is created, this status will continue as Null. When you click the button that will move to solved, this… 
- 
		1 votes1 answer557 viewsA: Send checkbox value not selected by formWhat is the need to send a variable without data, if value does not arrive you already know that was not clicked. It’s just in your back end to check if any answers are coming. PHP example: <?php… 
- 
		0 votes3 answers36 viewsA: Styling in menusCSS .pub{ border: 1px black solid; border-radius: 10px; } 
- 
		0 votes2 answers187 viewsA: Make the result of a table appear in AJAXYou need to indicate where your reply should be displayed $(document).ready(function() { $('#div1').hide(); $('#comboBox').change(function() { if ($('#comboBox').val() == 'Boletos') {… 
- 
		0 votes2 answers66 viewsA: Insert a date into the database via jquery+phpI still don’t understand why not use one: <input type="date" name="data" id="dtSelectorStatic"> <script> $("#dtSelectorStatic").change(function(){ $("#form1").submit() });… 
- 
		-2 votes1 answer28 viewsA: problems with signs of a mysql query with phpAdd <meta charset='utf-8'> at the header of your HTML file. OR Try to change your query for SELECT id_cnae, descricao FROM CNAE collate utf8_unicode_ci. But I suggest you change the collation… phpanswered Vinicius De Jesus 686
- 
		0 votes3 answers113 viewsA: Select two tablesSELECT DISTINCT c.id, c.site, c.cliques_usados, c.cliques, c.localizacao, c.tipo, c.id_user FROM campanha c INNER JOIN campanha_cliques p ON c.id = p.id_campanha WHERE p.tipo = '2' AND p.id_usuario… 
- 
		1 votes1 answer1500 viewsA: Send Form Data Directly to APII’ll add a basic example of how you’re likely to get your data sent to an API and saved to your database: //ESTE SCRIPT FOI FEITO UTILIZANDO A BIBLIOTECA JQUERY //LEMBRE-SE DE ADICIONA-LA NO HEAD DA… 
- 
		-1 votes1 answer629 viewsA: Limit JSON requests made in an APIHave you ever thought of an Entity(Table) USER with each user’s credentials and Credit amount? , that is, before doing the FINAL search, the script checks if the user is registered and if his number… 
- 
		1 votes1 answer37 viewsA: Do all entities of the conceptual model need to be related?I believe that it is not necessary for all entities to be related, imagine a veterinary system where the user of the system registers the data of the PET and the owner of the PET, in this case the… modelinganswered Vinicius De Jesus 686
- 
		0 votes2 answers107 viewsA: Form validation with javascriptIn fact the onsubmit does not work without the preventDefault I believe the right thing would be... function validar(e){ //o preventDefault, evita que o botão não siga seu fluxo padrâo. ou seja… javascriptanswered Vinicius De Jesus 686
- 
		1 votes3 answers222 viewsA: Show div after a certain amount of input digitsGood afternoon, although probably out of the subject, I believe that your idea is to give suggestions to the user from the input, I’ve done something similar myself and it was very cool, but after… 
- 
		1 votes1 answer562 viewsA: Change json Value with PHPMy first interaction with JSON with PHP, had already done something a little more complex with XML, but the idea is the same, the functions that change: I saved json to a file .JSON in the same… 
- 
		2 votes3 answers850 viewsA: Taking value from an inputUse the event .keyup() jquery call the function that will pick up the data, every digit. And use the function .attr("atributo", "valor do atributo"), to change the value of an HTML element. Example:… jqueryanswered Vinicius De Jesus 686
- 
		1 votes2 answers1547 viewsA: How to open modal with results on the Submit button?I’ll leave an example for you to use as a basis and adapt your needs, this is the way I found, but there must be others to reach this same result. <!DOCTYPE html> <html lang="en">… 
- 
		-1 votes1 answer183 viewsA: OPEN SELECT when "Hover" or "Focus"According to this link of the SO and this another link, and in addition to others I have consulted to answer your question, after I myself have tried, options of a SELECT, with the mouse pass. On… 
- 
		0 votes2 answers527 viewsA: Fill in input according to other input responseI suggest you use an ajax using the event onChange() in select of clients. Below is an example: <div id="respostaAjax"></div> <script type="text/javascript">… 
- 
		0 votes1 answer51 viewsA: Distribution of points in htmlI think I got it and I gave it an upgrade to see if it gives you an idea, the logic is very simple but I hit my head a little bit. <div class="snippet"> <p>Habilidades:</p>… 
- 
		2 votes1 answer347 viewsA: Button to edit table on clickI suggest that you use AJAX to make asynchronous requests, that is to say, by clicking on the modal pull the information directly from the database and by clicking save do an update in the database… 
- 
		1 votes4 answers50 viewsA: How to redirect the user to the page they were trying to access before login was requested?Putting into practice the Idea of the Martian, in view of your comment. I suggest you do so: <?php if (!isset($_SESSION)) session_start(); // Verifica se não há a variável da sessão que… 
- 
		0 votes2 answers121 viewsA: How to put two buttons inside a form where each one sends the data to different pages?Did not know the HTML attribute formaction, but I built this example based on your code. Using Javascript’s Jquery library: <!-- ##### Breadcrumb Area Start ##### --> <div… 
- 
		1 votes2 answers126 viewsA: Validate read or unread messageI suggest that you create in the table of the bank the column that says the status of the message (Read or Unread). And on the display screen of the messages uses a filter and check whether the bank… 
- 
		0 votes2 answers138 viewsA: Validate equal fieldsI’m not very good with pure JS, because in my daily life I prefer to use Jquery, Here’s an example of how you could validate the fields before making the form Ubmit: <script… javascriptanswered Vinicius De Jesus 686
- 
		0 votes2 answers382 viewsA: Javascript function concatenation in onclick inside phpHello Jennifer I do not know if my code will run, however I think so open your scope of possible ways to solve this kind of complications with strings in PHP; <?php if($dados_login['acesso']… 
- 
		1 votes3 answers202 viewsA: Sql query bring repeated resultAccording to https://forum.imasters.com.br/topic/384021-comando-contr%C3%A1rio-de-distinct/ Edit1: According to this other source http://www.mysqltutorial.org/mysql-find-duplicate-values/ the… 
- 
		0 votes3 answers50 viewsA: Bring data from Table and returns no resultsTry using a for, like this: <?php if($total){ for ($i=0; $i < $total-1; $i++) { ?> <tr> <td><?php echo $linha[$i]['ID Matrícula'] ?></td> <td><?php echo… 
- 
		0 votes1 answer53 viewsA: Verifies Registered UserAs I would: PHP #Recebe o Email Postado $emailPostado = $_POST['email']; $con = mysqli_connect("localhost", "root", "", "outrasintencoes"); $sql = mysqli_query($con, "SELECT * FROM usuarios WHERE… 
- 
		0 votes1 answer28 viewsA: I would like a help, I did all the registration and login procedure and it’s workingReplace with this: <h2 style="color:white;font-size:13px">Olá, <?php echo $_SESSION['nome']; ?></h2> and for that reason: if($row == 1){ $_SESSION['email'] = $email;… 
- 
		0 votes2 answers688 viewsA: Creation of buttons with bootstrapI arrived at a similar result using card <div class="card"> <a class="btn btn-large btn-danger" href="#"> <i class="fa fa-user-friends fa-3x"></i> </a> <div… 
- 
		1 votes1 answer36 viewsA: A doubt of PHPI made a little example of how I would do, maybe not the right answer to your case: - I made an array $row, simulating the data coming from the bank, but that can be replaced and appropriate to each… phpanswered Vinicius De Jesus 686
- 
		0 votes2 answers1103 viewsA: Javascript - Pick up object id from a list generated with PHP and HTMLExample of how I would do with jquery: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <script src="http://code.jquery.com/jquery-3.3.1.js"… 
- 
		0 votes1 answer167 viewsA: If inside a php <form>Like the Select and the Form do not have id eu assigns, profile and Form1, respectively. As the send button is not a submit, from what I understand is just make a ifchanging the action of formbased… phpanswered Vinicius De Jesus 686
- 
		0 votes2 answers910 viewsA: Change the OPTION of a SELECT according to the change made in the other SELECTActually I believe there are 2 ways to solve this problem: The first and I believe it is the best way to use ajax as colleague @Otavio replied you put an event .change() in the COD select and when… 
- 
		2 votes2 answers33 viewsA: Error Sitaxe PHP query in XMLFrom what I understand, you need to take a better look at PHP, what caused all the error were these different double quotes, was just swap for normal quotes and uncomment the foreach line as I had… phpanswered Vinicius De Jesus 686
- 
		0 votes2 answers86 viewsA: PHP & SQL - How to get specific information from each user in a tableGood afternoon, I was too lazy to make a similar table, and I also have no affinity with mysqli, because I only use PDO,. This is your user list: <div class="row" id="realTimeContents… 
- 
		0 votes1 answer112 viewsA: Pick up Form URLYou can solve this by creating a field of type Hidden containing as value the address of the page, using the javascript window.Location this way: <!DOCTYPE html> <html> <head>… 
- 
		1 votes2 answers192 viewsA: Add and Remove Field through CheckboxUsing Jquery you can solve this problem using the function toggle() easily, note that I removed the event onclick of checkbox and added a id: New checkbox <div class="form-group row">…