Posts by timarcosdias • 217 points
7 posts
-
0
votes1
answer39
viewsA: Procedures Mysql
After entering the user, use SELECT LAST_INSERT_ID(); to obtain the id user created, store the id into a variable and then enter the provider.
-
2
votes1
answer31
viewsA: Direct output of a program to 2 places
The command you are looking for is the tee. Your example would look like this, with output in the current terminal and in arqSaida.txt simultaneously: ./a.out | tee arqSaida.txt…
-
0
votes2
answers123
viewsA: Take a JS variable and move to a PHP class using Ajax with Jquery
I imagine you already have this PHP class implemented and have some method like tratarCidade(), for example. In this case, if you are not yet working with routes and controllers (and I imagine not),…
-
2
votes1
answer511
viewsA: PHP Mailer - Undefined Method 'Subject'
Subject is a class attribute PHPMailer. You can’t invoke it like you do with a method: $mail->Subject(). Instead, assign it the desired value, as follows: $mail->Subject = "Email de contato da…
-
-1
votes1
answer316
viewsA: How to increase sql file size in phpMyAdmin?
If I understand what you want to do, you just need to access your file php.ini and change the property value upload_max_filesize.
-
0
votes1
answer1511
viewsQ: Good practices with Angularjs controllers
In a view responsible for registering the members of the entity usuarios, if it is necessary to access data from an entity pessoas, for example, the ideal is that the method that will fetch the data…
-
1
votes1
answer504
viewsQ: exec() does not execute the past command
I’m trying to use the function exec() from PHP to run a file. jar (I know it’s not good practice, but it’s the only solution I have at the moment), but I’m not getting good results. The code in…