Posts by Simão Ítalo • 504 points
14 posts
-
2
votes1
answer24
viewsA: Information registered at the bank is exchanged
Hello, check the attributes name of their inputs, I believe they are exchanged in CARGA and OBJETIVO.
-
2
votes3
answers1428
viewsA: Error while breaking page for printing on Google Chrome
Dude, I ran some tests on your code here, and I got it working on Chrome. Apparently, using block elements (e.g., div) with borders will break the page-break layout. Try the following: Change all…
-
0
votes1
answer80
viewsQ: Mysql query with mixed ORDER BY?
My doubt is a little boring to explain but I’ll try to make it as simple as possible. I have the following tables in a Mysql database: produto, preco, preco_produto (many mapping to many), venda and…
-
5
votes3
answers176
viewsA: SELECT in two tables, with ID separated by comma
The ideal, if you have access and can change the structure of this bank, would be to use a many-to-many ratio. This way you could map correctly, according to normal forms, and would not have…
-
0
votes2
answers112
viewsA: Jquery append() and html() problems
Try this: echo "<script>$('.carrinho').html('".$carrinho."');</script>";
-
1
votes3
answers926
viewsA: PHP-Mysql Error Return: Call to Undefined Function
If you are using mysqli_ to connect to the database, forget any method that starts with the prefix mysql_, because they are different methods to deal with BD. Try to do it this way: <?php /*…
-
2
votes2
answers1299
viewsA: Codeigniter with Modal Screen and Registration Response
Before the redirect you can add some data in the flashdata session to have access only in the next redirect. Do: $this->session->set_flashdata('mensagem', 'Cadastrado com sucesso!'); In the…
-
2
votes1
answer536
viewsA: Pass a query array to all Codeigniter pages
You can create a controller class MY_Controller extending the class CI_Controller Codeigniter and then make all your controllers extend your custom class. The logic is to create a base file that has…
-
2
votes2
answers37
viewsA: Error inserting data into table
Hello, a table name can start with numbers, but not just numbers. Try to change the name of your table, a tip is that whenever your table has special characters or is a reserved word, put the name…
-
0
votes1
answer255
viewsA: Performing a function on two different elements without one affecting the other
You can use the $(this) inside the click event call to pick up exactly the button that was clicked. From there you can find the "brother" element of the button, which would be the element…
-
3
votes1
answer8774
viewsA: Error creating Mysql foreign key in phpMyAdmin?
Check that the fields you are trying to reference are exactly the same type and size. What may also be happening is that to add an eligible foreign key field by phpmyadmin, you will first have to…
-
1
votes1
answer168
viewsA: How to know the contents of a foreign key for filling another table?
Logically you would have to enter the record in the address table first. With the command $mysqli->insert_id you have access to the last id inserted in the last Sert you made, if you are using…
-
0
votes1
answer551
viewsA: Compare fields in jQuery
Without seeing the html code of the form gets a little complicated, but its js code seems to me to be ok, I managed to make it run here without any more problems, without taking into account that it…
jqueryanswered Simão Ítalo 504 -
1
votes2
answers506
viewsA: Curriculum attachment via e-mail in Codeigniter not working
The form opening has to be Multipart type, so: <form method="POST" action="#" enctype="multipart/form-data">. Also, on the controller, change the line:…