Posts by Thiago Lima • 76 points
6 posts
-
0
votes0
answers52
viewsQ: Errorexception rmdir(/tmp/): Permission denied Laravel
I’m using the class Mail of Laravel and send the e-mail via SMTP right, but shows an error. Errorexception rmdir(/tmp/): Permission denied I’ve already given the folder full permission tmp of the…
-
3
votes3
answers236
viewsA: Receive json mysql data
this code won’t even work, because $dados is not an object, $jsonObj is what it is. Do it as soon as it works: $jsonObj = json_decode($nam); foreach ( $jsonObj as $e ) { echo "nome: $e->nome "; }…
-
1
votes5
answers3267
viewsA: Php returns null JSON when it has accent in Mysql
Try something like that: <?php $con=mysqli_connect("localhost","user","senha","banco"); $parametro = $_GET["parametro"]; if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: "…
-
1
votes2
answers131
viewsA: How to use special mysql order_by in codeigniter
The solution I found was writing a sql, not the best way but it worked. if someone has a better way. return $this->db->query("SELECT * FROM `Cidade` ORDER BY id = 1347 DESC , id = 1156 DESC ,…
-
0
votes4
answers660
viewsA: Getting PHP variables via Javascript without reloading page
Dude, it’s easy. I understood you want to use the data in both php and javascript. First avoid this loop in the tag script. This is not cool. then you do a foreach to generate a json. depending on…
-
1
votes2
answers131
viewsQ: How to use special mysql order_by in codeigniter
in mysql I can do so. SELECT * FROM `Cidade` ORDER BY `id`=1347 DESC But I can’t do it in codeigniter, I’m trying it like this: $this->db->order_by("id = 1347", "DESC") ->get("Cidades"); In…