Posts by Leonardo Crispim • 1 point
4 posts
-
-2
votes1
answer32
viewsA: Putting data from a csv into php variables
In the fgetcsv function you can pass the break parameter of your CSV, by the look is the point and comma (;). I suggest you look in the documentation:…
phpanswered Leonardo Crispim 1 -
-3
votes1
answer64
viewsA: php does not update registry in bd mysql
There are errors in your SQL’s. The two are not being executed. In the first one has a comma before the WHERE and the function now needs NOW parentheses(). In the second it has a single quotes after…
-
-1
votes1
answer25
viewsA: Selection of Recipes by Specific Ingredients
It is not the most indicated mode but by following your code there, you can use LIKE and AND for your variables. $sql = " SELECT * FROM Receita WHERE ingredientes LIKE '%{$i1}%' AND ingredientes…
-
-1
votes1
answer50
viewsA: How to take the value of php Session and in the select field mark as Selected through ajax?
I’ll try to help. I believe your way of thinking in this situation is getting in the way. If you already have the city chosen in the session, it is not necessary to make 2 requests (load and ajax).…