Posts by madsongr • 105 points
7 posts
-
0
votes1
answer155
viewsA: PHP Mysql multidimensional array
I ended up doing it that way: $tour = array(); if ($stmt->num_rows > 0) { while ($stmt->fetch()) { $result = array( "id" => $mID, "name" => $username, "lastname" => $lastname,…
-
-1
votes1
answer155
viewsQ: PHP Mysql multidimensional array
I’m having a little trouble assigning an index to encompass the items marked in the figure below in a multidimensional array I’m mounting with the database queries: I need to take from another table…
-
-1
votes1
answer112
viewsQ: Vue.js edit post by id
I’m starting with Vue.js and am loading some database posts on the screen with v-for Vue.js. I have two functionalities (edit and delete) on two separate buttons under each post. The delete feature…
-
0
votes1
answer291
viewsQ: React hook form checkbox always true
I have a question when receiving the database data for my checkboxes. Even the value coming false from the bank, the checkbox is checked. I’ve tried several forum responses but I must be missing…
-
0
votes2
answers70
viewsA: Post var javascript in PHP
You may have to use json_decode in php: $data = json_decode(file_get_contents("php://input")); if(property_exists($data, 'userCountry') || property_exists($data, 'userIp') || property_exists($data,…
-
0
votes1
answer41
viewsA: Doubt PHP Json Array
Well, I realized that by making nested arrays I can make the loop properly in the Angularjs. I don’t know if it’s the best way to write the script: $id_candidato = 1; $id_vaga = 2; $sql =…
-
-1
votes1
answer41
viewsQ: Doubt PHP Json Array
In the query below $id_candidato = 1; $id_vaga = 2; $sql = $mysqli->query("SELECT * FROM candidatos WHERE id_vaga = '".$id_vaga."' AND id_candidato = '".$id_candidato."'"); if($sql->num_rows…