Posts by Felipe • 335 points
24 posts
-
0
votes1
answer3140
viewsQ: Copy and paste into different sheets in Google Sheets
I’m trying to copy a value from one table and send it to another using the Google Sheets script, but I get the following error Target range and source range must be on the same spreadsheet function…
-
0
votes1
answer181
viewsQ: Problem when trying to use a chart and table with Google packages
I’m trying to use Google’s packages to build a page, and I’m not getting a chart and a table on the same page This is the code for the table <div id="table_div"></div> <script…
-
1
votes1
answer79
viewsQ: Leave the bar centered using dragdealer.js
I am using this library to create bars that the user can interact with: http://skidding.github.io/dragdealer. I would like the drag bar to start at 0, that is, in the middle of the bar: But I have…
-
0
votes1
answer141
viewsQ: Navbar is changed with scrolling
I’m trying to get my navbar to change when I scroll down. So far, I have the following HTML code: <nav class="navbar navbar-default navbar-fixed-top"> <div class="container"> <!--…
-
1
votes2
answers761
viewsA: Dynamic name input name
I guess when you say "amount of data," you mean amount of columns coming from the bank, right? If so, maybe it works: Connecting in the bank: <?php define('DB_NAME',…
-
-3
votes4
answers810
viewsA: Validate Javascript fields
What backend are you using? If it’s PHP, you can do the following: if (isset('submit'){ //substitua o submit pelo nome do primeiro botão que a pessoa precisa clicar para habilitar os outros campos…
-
2
votes1
answer241
viewsQ: Responsive Landing Page with bootstrap
I am trying to create the following layout on my Landing page: However, when trying to create this in HTML, I can’t get the images to make this list. I’m trying to use the "deck" class,…
-
-1
votes1
answer154
viewsA: PHP cannot read POST sent by Javascript
Do you need to use Javascript? If you don’t need it, you can do the following: Login page <form action="includes/process_login.php" method="POST"> <div class="form-group"> <input…
-
1
votes2
answers175
viewsQ: Take only one value from mysqli_fetch_assoc
I’m trying to make a code for inventory control using PHP. Each time the user uses the program, the user must select an employee and from there select the rest of the fields as needed. This part of…
-
0
votes1
answer252
viewsQ: Expandable navbar
I have this navbar on the left of my screen <div class="main-menu"> <ul> <li> <a href="listCadastro.php" onclick=""> <span class="menu-icon"> <i class="fa…
twitter-bootstrapasked Felipe 335 -
1
votes0
answers127
viewsQ: Use custom Alert in javascript
I’m trying to use something other than the standard javascript alert and apparently changing the syntax doesn’t work. For example, this code works. $mysqlInsert = mysqli_query($conexao,$sqlInsert);…
-
0
votes1
answer585
viewsQ: Calling input value within span
I have this line of code: <input type="text" class="form-control" id="usado" placeholder="Quantidade" aria-describedby="basic-addon1"> <span class="input-group-addon" id="basic-addon1"…
-
0
votes2
answers3086
viewsA: Take Mysql data with PHP and move to Javascript
I got it to work. Code complete.php: <? include "conexao.php"; $search = mysqli_real_escape_string($_GET['term']); $sql = "SELECT * FROM consulta"; $result = mysqli_query($conexao, $sql) or…
-
2
votes1
answer53
viewsQ: How to create tag event?
I am creating a form and would like to add tags each time a name is selected with an autocomplete. This would be the equivalent of adding tags to an OS question. I would like to have a basis on how…
-
1
votes2
answers3086
viewsQ: Take Mysql data with PHP and move to Javascript
I am trying to use jquery to make an auto complete in my search field. The connection to the bank is correct and I use the following code to save the files: <?php INCLUDE "conexao.php"; $sql =…
-
1
votes1
answer1821
viewsQ: Alert works and sweetalert does not
I’m trying to use sweetalert to give an alert of "Submitted". if($rstSql["cod_erro"] == 0) { echo '<script> swal("Good job!", "You clicked the button!", "success"); <script>'; } else {…
-
0
votes1
answer1342
viewsQ: Page request on localhost takes 20 seconds to open
I’m trying to show database data in a table. <html lang="en"> <head> <title>Estoque</title> <!-- Bootstrap core CSS --> <link href="bootstrap/css/bootstrap.min.css"…
-
0
votes2
answers3670
viewsA: How to pass value within the modal with PHP
Following Matheus' lead, I obtained: <html lang="en"> <head> <title>Estoque</title> <!-- Bootstrap core CSS --> <link href="bootstrap/css/bootstrap.min.css"…
-
0
votes2
answers3670
viewsQ: How to pass value within the modal with PHP
I am trying to create a delete button for a table. Deletion will be ugly in two steps: 1. click on the bin 2. confirms I believe I’m getting confused when passing the value of $id to modal. <html…
-
3
votes3
answers2295
viewsA: Doubt when using ON DUPLICATE KEY UPDATE
I had already looked at the link and it didn’t help me much, but I found that the mistake was about how I called the strings. After ON DUPLICATE KEY UPDATE I call the strings simply, when I should…
-
3
votes3
answers2295
viewsQ: Doubt when using ON DUPLICATE KEY UPDATE
I’m trying to use ON DUPLICATE KEY UPDATE in my query and for some reason it’s not working. I withdraw the ID and no use ON DUPLICATE KEY UPDATE: values are saved in a new line in the database.…
-
1
votes0
answers808
viewsQ: How to use alert modal within a PHP form?
I am trying to submit a form within the same page with $_SERVER['PHP_SELF'] and from there receive a "registered product" alert with a Boostrap modal. I believe I’m failing to link the action submit…
-
1
votes2
answers1080
viewsQ: Error doing Insert in PHP database
I am trying to do the data Insert in Mysql, no error appears but does not insert the values in the database. <?php INCLUDE "conexao.php"; if (isset($_POST["submit"])) { $cod_produto =…
-
4
votes1
answer7226
viewsQ: How to run a PHP database
I’m trying to create a listing and I’m having trouble calling the Select Database. Code connecting to the bank: <?php $conexao = mysql_connect("localhost", "admin", "admin") or print…