Posts by Fabio Davel • 146 points
7 posts
-
2
votes1
answer1185
viewsA: Inserting data into the BD with codeigniter in different tables in the same controller
From what I saw your first Insert is redirecting the user after inserting, change the method call as follows $this->cidadao->do_insert_cidadao($dados, FALSE); Because your citizen insertion…
-
0
votes2
answers998
viewsA: Javascript, hit sequence of numbers
"lenght" is actually "length", see: <input type="text" id="numero"/> <input type="submit" id="adivinha" value="compare com meu segredo"/> <script> var…
-
2
votes1
answer1815
viewsA: Innerjoin no Codeigniter
Well, to do Join in the IC is like this: model that inherits the IC model public function listaVideos() { return $this->db->select("videos.*, votacoes.voto") ->join("votacoes",…
-
0
votes3
answers329
viewsA: Use of codeigniter memory
Look I think it may be the way it was developed, the CI makes many includes. the more $this->load use the more memory will consume. But it also has to see if the memory consumption is php or…
-
1
votes2
answers1304
viewsA: How to hold the value of a POST between paging in Codeigniter?
A good way is to use Session, type when filling the form and send stores the post data in sassion, and your filter goes on to retrieve the information from Session. so you can transfer your post…
-
1
votes1
answer611
viewsA: Connect external php script to mysql from a codeigniter server?
From what I saw in your sample code you include a php that is a class to use the functionality of the same. Already thought of transforming it into a library in CI, so it would be integrated into…
-
7
votes3
answers6755
viewsA: How do I receive the $_GET value of a URL in Codeigniter
if you are using website.com.br/index.php/products/shoes/type/123 will be a parameter in the controller creating the method like this: public function sapatos($tipo, $id){ echo $tipo; echo $id; } if…