Posts by Gabriel • 15 points
5 posts
-
1
votes1
answer715
viewsQ: How do I search for JSON object property values in PHP/Mysql?
I need to filter the tags, they’re separated by comma: { "tags":"Tag 1, Tag 2, Tag 3" } Using $busca = 'Tag 1'; $sele2 = $pdo->prepare("SELECT * FROM quiz_publico WHERE quiz_json like…
-
0
votes1
answer48
viewsQ: How to ignore json elements and capture only those that are correct = true
I need to take only the value of the objects that have correct:true and if you do not need to return [] "questions": [{ "title": "Qual é a raça de Goku?", "image": { "path": "" }, "alternatives": [{…
-
0
votes1
answer67
viewsQ: Is it possible to randomize data from a JSON?
I am making a quiz system, where the correct answer will always be the first alternative in the database, but it is necessary that it be random when it comes to answering. (PHP) It is possible to…
-
0
votes0
answers35
viewsQ: How to filter $_POST['cropData']["width"] with filter_input
I’m trying to filter using this filter, filter_input(INPUT_POST, 'cropData[width]', FILTER_VALIDATE_INT); but nothing returns.
-
0
votes1
answer352
viewsQ: Sort form by javascript to form array
I need to save the form data in an array, but also need to give the option for the user to add multiple answers and questions as it is a quiz site. The problem is that this button is not working…