Posts by lstonon • 312 points
16 posts
-
0
votes1
answer37
viewsA: Alternative connection to Webservice
Does the check with curl_error($ch), in the event of failure, make an exception throw new Exception($error_msg, 1), treats the exception by trying a new request: it would look something like:…
-
1
votes1
answer80
viewsA: How do I get expiration time on the recovery link?
A good solution would be when requesting password recovery: Having a constant that defines the expiration time; Create a token with the current date information; Associate this token to the user in…
codeigniteranswered lstonon 312 -
2
votes2
answers472
viewsA: "Unknown column 'Array' in 'Where clause'" - PHP+Codeigniter
You can do something this way to access the property you need: $this->db->select("*")->from("dados_vaga")->where('id_vaga', $qr->id_vaga);
-
1
votes2
answers531
viewsA: Error 1093 in Mysql
Modify the insertion query by making a INSERT with SELECT, as follows: insert into Materias (select 1,'Alged',6.0,7.0,(select sum(nota1+nota2)/2 from Materias where RA = 201500984),0.0,(select RA…
-
0
votes2
answers38
viewsA: List of Tables
This practice, besides Mysql does not allow, does not make much sense. First, to relate two tables, the reference field must have its identical properties, necessarily. Second, you can generate an…
-
1
votes3
answers2215
viewsA: belongsToMany Laravel - find()
Have you tried using the relationship hasManyThrough? It serves exactly for relationship ManyToMany, which is what seems to be your case. There is a complete example in the Laravel documentation…
-
1
votes2
answers1283
views -
1
votes2
answers235
viewsA: Limit 1 line in queries with primary key queries
whereas the countryside id is defined as primary key, no need to put limit 1, because there will never be more than 1 record.
-
1
votes2
answers210
viewsA: Marking IP Tos Field in Openflow
Hello! I have little knowledge in the area, but as far as I know, it is the controller that defines all the intelligence of the switch. So if you have any package checks before it is routed, this…
-
2
votes1
answer7376
viewsA: How to check "SQLSTATE[42S22] error: Column not found: 1054 Unknown column"
The error being displayed is Column not found, this means that some field you have in the sql query, you do not have in the database table. Make a comparison and remove this field from the query. I…
-
4
votes1
answer377
viewsA: What is the correct way to run an application on a linux server using PHP?
Hello! When you run the script by the browser, it is the web server user that runs this script. For example: If you are using an Apache server, it runs with a user named apache. Then you need to…
-
0
votes1
answer508
viewsA: Show Json data inside an Html Form
The problem may be in your model query. Assuming you have a model called 'Student'. Instead of $aluno= $this->aluno->select('*')->find($id); do $aluno = Aluno::find($id);. I hope to help…
-
-1
votes2
answers499
viewsA: Div appears in her after 2 seconds with jQuery
Try to use setTimeout. window.setTimeout(function() { $(window).load(function() { $(".se-pre-con").fadeOut("fast"); }); }, 2000);
-
1
votes1
answer303
viewsA: Laravel - 'Route' call without a command for this?
If that’s what I understand, you need to change course and your action is via Jquery, don’t you?! do the following:: First, test the route '/search-Billing-verFormulario' in your browser, passing…
-
0
votes1
answer700
viewsA: Send data from a form by email
If you want to pass this information to any application installed with email sending functionality, use: Intent.ACTION_SEND. In this link below is a well prepared example, capturing the form data…
-
1
votes1
answer1838
viewsA: Error typing IF and Else in jquery
Hello! Your code has a syntax error in the "if Else" block. To correct you will need to put a condition to be tested inside if. For example: if(ALGUMA_VARIAVEL == CONDICAO) {…