Posts by Alfredo Lima • 484 points
35 posts
-
2
votes1
answer1043
viewsQ: Database Request API For Angularjs
What API’s to make requests with database (mysql preference) that I have available to work integrated with Angularjs, some that is simpler to use and that runs on any server, I was going to use the…
-
0
votes1
answer242
viewsQ: Mysql Database Request $HTTP Api
People I see in courses and video lessons the staff ultilizando essa $http when making requests with Angularjs, only that they always pass a friendly url when making the connection and I do not know…
-
5
votes2
answers3456
viewsQ: How to get parameters in the URL through Angularjs
Guys I have a URL as follows "test/#/app/product/2" and I wanted to take this number at the end of the URL and use it to make a condition as I do to bring this ID?
angularjsasked Alfredo Lima 484 -
0
votes1
answer516
viewsQ: Problem passing parameters through the url using Angularjs
Guys I have a template here that uses the Angularjs and his route system is as follows .state('app.produto', { url: '/produto', templateUrl: 'tpl/detProdutos.php', // use resolve to load other…
-
1
votes2
answers992
viewsQ: Passing Parameters from Multiple Checkboxes to a Jquery Variable
Hello, I would like to know how I do to take the values of the value field of several checkboxes selected and save in a variable jquery separated by commas, but without using the id field, since it…
-
0
votes2
answers87
viewsQ: Verification With Two Tables
Galera I’m trying to create a system where I have two tables a call from acompanhamentos and the other produtos. Inside the table accompaniments there is the column sincroniza where I write several…
-
0
votes2
answers648
viewsQ: Record Multiple Numbers in a Field in the Database
Guys I have a column in a table in the database that is called "synchronizes" inside it I want to save several numbers separated by comma, and then do a check on a page as follows, that if there…
-
3
votes3
answers896
viewsQ: HREF pointing to a button
How to point a HREF to a button of the type submit hidden? Hidden/invisible is because the button will be using the attribute hidden.
htmlasked Alfredo Lima 484 -
1
votes2
answers250
viewsQ: Display sum in span
I have a javascript code that sums the values of checkboxs selected and displays in a input. However, I would like to know how do I display the value in a span? Follow the code below: <script…
-
1
votes1
answer1448
viewsQ: Input Subtraction System With Javascript
I have a subtraction system via input only that the following is happening for example if the value is 30 and I want to subtract 29.50 instead of appearing 0.50 it appears 0.5 does not appear 0 at…
-
0
votes1
answer44
viewsQ: Add elements to a webpage without reloading
I want to make a system to list records from a table in the database so that as soon as I add a new record, it automatically appears in the list. I have the whole system ready only in PHP, but does…
javascriptasked Alfredo Lima 484 -
0
votes1
answer200
viewsQ: Problem with decimal places
Guys I have this code in javascript that adds values of checkboxes, for some reason it only adds the first house of value, for example, the value is 1.75 it adds only 1.00, the code is this.…
javascriptasked Alfredo Lima 484 -
1
votes1
answer3743
viewsQ: Login using PDO
I’m developing a system of login with the pdo for learning, but it always accuses error in password. Follows the code: <?php session_start(); include "../../lib/inc_con.php"; $pdo=conectar();…
-
1
votes1
answer62
viewsQ: Correct way to send values through PDO
I was informed that I was doing it incorrectly, the phrase said was the following: "It does no good to use a newer API and keep the vices of the old mysql_*, you should not pass the values directly…
-
-8
votes1
answer79
viewsQ: Insert Into Does Not Send Values
I have this code to send values to a table in the database, it is not displaying any, it is simply not sending values <?php include "../../lib/inc_con.php"; $mesa = $_POST['mesa']; $tamanho =…
-
3
votes1
answer20225
viewsQ: Array to string Conversion in
I am trying to make an INSERT in a table but is returning the following error: Notice: Array to string Conversion in C: xampp htdocs Moclient 3.0 modules products funEnviarPedido.php on line 25 Code…
-
3
votes2
answers738
viewsQ: Make a change to a div by checking a checkbox
Does anyone know how I change a div or label by marking a checkbox example have this code here. <label style="margin-bottom: 10px;"> <div class="adicionalch bg-yellow"> Nutella <input…
-
-2
votes1
answer233
viewsQ: Checkbox summation system not working
I have a summation system using checkbox and radio button always used it and it always worked, but I tried to put it on another page I have and it stopped working the code is this one: function…
-
6
votes2
answers475
viewsQ: Installation Do icheck
I can’t seem to do the icheck work i install I do the inclusion of css and js files in my index and even then it does not work checkboxes and radiobuttons remain the same thing, someone can help me…
-
1
votes0
answers765
viewsQ: Countdown ultilizing the current time in Javascript
Guys I found this counter in Javascript on the internet and I need to configure it as follows: In giving 22 hours he starts the countdown, the countdown goes to 15 hours the next day, then the day…
-
2
votes1
answer1892
viewsQ: Show/Hide "Terms of Use" by clicking checkbox
How do I, when marking a checkbox, release content from the site? For example, I want to make a system of terms of use, where by clicking "I accept the terms" it releases the button to proceed with…
-
1
votes2
answers349
viewsQ: Change Bootstrap icon in Mobile version
Guys I have this code: <i class="glyphicon glyphicon-arrow-right"></i> which is a bootstrap icon of an arrow to the side. I want to make sure that when a person connected to the site is…
-
3
votes3
answers758
viewsQ: Generate Single Check Serials
Does anyone know how I can make a unique serial system in a way that never repeats the same serial, I’ve heard that with Rand and md5 can do but I’m not sure that one hour it won’t happen again.…
phpasked Alfredo Lima 484 -
0
votes1
answer80
viewsQ: Insert into with waiting time
I have a form that his action sends to a.php file that makes an Insert in the database with the information passed by the form, and I’ve noticed that if I double click very quickly on the Ubmit…
-
0
votes0
answers57
viewsQ: Switch vs If Which the best
Guys to work with whole numbers what’s the best and the lightest? Switch or If <?php if($lndet['tamanho'] == 0){ ?> <td><input type="radio" name="tamanho" id="8.50" value="250GR"…
phpasked Alfredo Lima 484 -
1
votes1
answer809
viewsQ: Capture Month in field date
I have a field date in my Mysql database and it stores the date of type y-m-d which is already used in other queries, but now I need to capture only the month to perform a sum. The code I have is…
-
0
votes1
answer20
viewsQ: Update Page If Query Return False
Guys, next I have this appointment here $consultapedidos = mysql_query("SELECT * FROM pedidos WHERE produzido = '0'"); if(mysql_num_rows($consultapedidos)==true){ while($lnped =…
-
0
votes1
answer779
viewsQ: Displaying The Same Record Twice
This is my code that makes a list of tables <?php $consulta = mysql_query("SELECT * FROM mesas INNER JOIN pedidos WHERE pedidos.mesa = mesas.id and conta = 0"); if…
-
0
votes2
answers319
viewsQ: Check with IF and INNER JOIN
Guys I have these queries in the database <?php $consulta = mysql_query("SELECT * FROM mesas LIMIT 50"); if (mysql_num_rows($consulta)==true) { while($lnmesas = mysql_fetch_array($consulta)){…
-
-1
votes2
answers3379
viewsQ: Mysqli INSERT INTO Does not work
I have a code that inserts records into the database, it is not displaying any error, it is simply not sending the data to the database the code worked previously only that as mysql_* became…
-
-3
votes2
answers79
viewsQ: UPDATE SET in a record
Guys I have a table that lists records in the database and in front of each record has a button like this <a href="index.php?mod=pedidos&funcao=editar&id=<?=$lnped['protocolo']?>"…
-
0
votes1
answer362
viewsQ: Send Selected Checkbox
I looked at some questions here on the site, but could not understand well. I have several checkboxes like this: <td> <label class="ls-label-text"> <input type="checkbox"…
-
5
votes3
answers1909
viewsQ: Capture Input ID
Anyone knows how I do to capture an input id and send it to the database? EXAMPLE I have this input: <input type="checkbox" name="adicional" id="Leite Ninho" value="2.00"> It has the name I…
-
2
votes3
answers221
viewsQ: Error: the right syntax to use near 'add
I don’t know what’s going on but my code doesn’t work it is simply not entering data into the table <?php include "../../lib/inc_con.php"; session_start(); $mesa = $_POST['mesa']; $tamanho =…
-
1
votes1
answer941
viewsQ: Radiobutton and Checkbox Soma
Guys I here a code in js that when selecting a checkbox it displays the value of the checkbox in an input and if I select more than one it sums the checkbox selected and displays the total value…