Posts by Ribak • 325 points
22 posts
-
2
votes1
answer77
viewsQ: Calculate the time difference without giving the date
I’m trying to figure out the difference between two hours. However, I would not like to give the dates. I would like to know for example that between 23:00 and 01:00 it was 120 minutes. What I tried…
-
0
votes1
answer758
viewsQ: Foreach in an HTML table - PHP - CODEIGNITER
Hello, I’m doing the following: Model: public function getLocatarios() { $this->db ->select('*') ->from('tbl_locatario'); return $query = $this->db->get()->result(); } Already on…
-
0
votes1
answer587
viewsQ: Get value in onclick js
I have the following variable: var id = doc.data().cd_id ; Already in Javascript I dynamically mount html: "<button type='button' onclick='testeonclick(" + id + ")' class='btn btn-primary…
javascriptasked Ribak 325 -
4
votes1
answer141
viewsQ: Filter dates in array
Currently I use firebase as my database. I need to take a collection and bring the data of a specific month according to two fields of my collection. firebase doesn’t let us make querys with…
-
-1
votes1
answer80
viewsQ: Sort Multidimensional Array java script
I have the following array: I’d like to order the same for id - 15135 id - 50 id - 25 I tried to use array.sort but it didn’t work.…
javascriptasked Ribak 325 -
3
votes1
answer1231
viewsQ: innerHTML on a TR of a Javascript table
Hello I would like to generate a dynamic table in java script(only the tr and td) for this I am using innerHTML. I make the following code: objDiv1 = document.getElementById("tabela"); bloco +=…
-
0
votes1
answer21
viewsQ: Realtimedatabase Read data via Java Script
I have the following JSON "colecao" : { "id" : { "subid1" : 2, "subid2" : 1 } } I use the following commands to retrieve data from the Altime var dbrealtime = firebase.database(); var query =…
-
0
votes1
answer411
viewsQ: Catch real-time id Firebase
I’m creating a new document in firebase and likes to take the id I’ll be creating to save in my collection, but how would I get it if I haven’t saved it in the database? Example: the id you will…
-
-1
votes2
answers51
viewsQ: "i" turn an HTML button
Hello, I would like my html 'i' to turn a button, because from it I want to call a modal, I want to use an 'i' because I want to put the facebook icon, I tried to put inside the button, but did not…
-
0
votes1
answer102
viewsQ: PHP - Move Controller to Codeigniter view/ Active menu
I want to make an active menu shape stay colored, so I separated my template has: View: Menu_lateral.php - place where you have the side menu; Controller: General: Where would I tell which menu is…
-
0
votes1
answer754
viewsQ: Save Images from Codeigniter
Hello, I am wanting to save an image in the database. I am using the following: $config['upload_path'] = './assets/fotos/'; $config['allowed_types'] = '*'; $config['max_size'] = '512000';…
-
1
votes1
answer491
viewsQ: Compare Dates - PHP - Codeigniter
Hello, I have the following case I’m with a date in the database saving so: (02-12-2016). The idea would be to take the current date and if it is less than 2 days that the date quoted above does…
-
0
votes1
answer201
viewsQ: Pass code via url with/to a java script (php+codeigniter)
Hi, I have the following case. I have a part with just a few data from various locations, I would like to do something to open a pop-up to show all the data from that location, for that would need…
-
0
votes1
answer90
viewsQ: Maps - Codeigniter
Personal I am using the following library to work with maps: http://biostall.com/codeigniter-google-maps-v3-api-library/ . Here is the tutorial of the same:…
-
2
votes2
answers2923
viewsQ: Installation of the Laravel
I followed the installation text of the Laravel that is on the official website and returned me the following errors. Warning: require(C: xampp htdocs primeiro_app_laravel…
-
1
votes1
answer756
viewsQ: Error "1052 Column in Where clause is ambiguous"?
I am having problems performing a system. I am doing a Join and the following error appears: Error Number: 1052 Column 'id_doador' in Where clause is ambiguous SELECT * FROM doacao JOIN doador ON…
-
1
votes1
answer199
viewsQ: Googlemaps - Codeigniter - PHP
I’m using the following library http://biostall.com/codeigniter-google-maps-v3-api-library/ to mark on the map, could someone who has already used it tell me if it is possible when the user clicks…
-
0
votes1
answer238
viewsQ: E-mail PHP+Codeigniter
People, I made several examples, being them of books or the internet and all return the following message when I run the function to send the email: Failed to connect to mailserver at "localhost"…
-
0
votes2
answers472
viewsQ: "Unknown column 'Array' in 'Where clause'" - PHP+Codeigniter
Hello, I have the following tables in the database: data. datos_candidate where the same has several fields and one is the following id_vaga. When I save a vacancy the same has the id_vacancy, that…
-
0
votes1
answer637
viewsQ: Search data from 2 tables - PHP+Codeigniter.
Hello, I’m starting my studies in codeIgniter and I came across the following. I have an employer table and another of vacancies, the job has employer id. I would like to show the data of the 2…
-
2
votes2
answers1766
viewsQ: Show result of a query in html - PHP+Codeigniter.
Hello, I’m trying to make an example in codeIgniter where I want to show database data in html Formularios. This is my query: $id_entidade = $this->session->userdata('id_entidade'); $query =…
-
1
votes1
answer472
viewsQ: Check if email already exists with codeigniter
I want to check if an email already exists in the database. I am doing the following. $this->load->database(); $query = $this->db->get_where('usuario', array('email')); $result =…