Posts by jona1has • 135 points
17 posts
-
0
votes1
answer63
viewsQ: Save values in session to show the total sum dynamically
Good night. I have a problem which is as follows; I have a form which is generated by a foreach, where it shows ticket values. In this form you can add the amount you want to buy from multiple…
-
1
votes1
answer59
viewsQ: Recover errors with php and send via message
I am doing an integration of Slack with my application to show every time any system error will arrive a message in Slack channel. using the API I can already send message through Curl: follow the…
-
0
votes1
answer489
viewsA: Insert values into an INPUT type="number" or SELECT from the database
You’ll have to use some api for that, I’m using one on my system that uses viacep. I’ll send you a code as an example and you make the necessary changes. It’s just so you get an idea of how it…
-
0
votes1
answer28
viewsA: Modal view with mysql database list
You need to use javascript and ajax, pass the id of the array you want to search in the modal onclick, make a request via ajax and display the data in the modal. Modal also needs an id.
-
0
votes1
answer102
viewsQ: Modal does not load the data that is coming from the database correctly
Good morning. Guys, I got a little problem here. I am showing in the view a table, where if a column has a certain status will show a link to open a model where will be shown the data that are in…
-
0
votes1
answer38
viewsA: Problem with Select and PHP
On the onchange you have to pick up the id that was selected. var id = $('#id_do_select'). val(); and from then on you will treat according to the id that was selected.
-
-3
votes5
answers923
viewsA: Help with PHP and Mssql special characters
It was with a problem seems in the register of names with special characters and with apostrophe in the names, use iso 8859-1 and utf8. RESOLVED THAT WAY > $data['name'] =…
-
1
votes1
answer49
viewsA: Print values from 1 to N
Hello, import java.util.Scanner; public static void main(String[] args){ Scanner entrada = new Scanner (System.in); //valor recebido pelo usuario for(int i=0; i<entrada; i++){…
-
0
votes1
answer34
viewsQ: Error handling of special characters when sending to iso-88591 and utf-8 database
Good evening friends, I have a problem where I can’t send data correctly to the database, when this data goes with special characters, name like D'vila always give errors. Has anyone ever had this…
-
1
votes1
answer192
viewsQ: pass a select value to a php page without refreshing the page!
Good morning, guys I have an onchange event in a select, I wanted to take the value of select and send to a php page. $(document).on("change", "#doc_sel_clinic", function(){ var id = $(this).val();…
-
0
votes3
answers399
viewsA: pass javascript variable to a php variable
did so in javascript as vcs recommended: $(document).ready(function() { $(document).on("change", "#doc_sel_clinic", function(){ var id = $(this).val(); $("#id_clinic_hidden").val(id); $.ajax({ type:…
-
2
votes3
answers399
viewsQ: pass javascript variable to a php variable
Good morning, everyone, I’m having a question: i have a select that takes the one array from the database, and every time the user changes the select it has a change in javascript that update it in…
-
2
votes5
answers16658
viewsA: input only numbers with jquery
Hello, you can put this right in the input that solves: onkeypress='return event.charCode >= 48 && event.charCode <= 57' hope I’ve helped!!
-
2
votes1
answer53
viewsQ: Pass a variable that is in a javascript file to a $_SESSION and pick up a php page
Good evening friends. Next I need to pass a variable from a . js file to a Session and to pick up another page with php. The javascript function returns the first available time for marking a query,…
-
0
votes3
answers76
viewsA: How an array comes from the database in an input
Good night, use the foreach. documentation: http://php.net/manual/en/control-structures.foreach.php…
-
0
votes2
answers173
viewsQ: Check if a registered user in the bank has already registered Cpf
Hello, guys I need to check in the bank if a logged in user already has registered Cpf and return if it is false or not. I use codeigniter in the app. I’ll send you the codes. CONTROLLER: public…
-
0
votes1
answer251
viewsQ: Jquery validate with type button
Hello, I have a form that uses direct javascript to send the data, and its type is button. <button type="button" id="login_submit_patient" class="btn btn-focus m-btn m-btn--pill m-btn--custom…