Posts by GuilhermeLib • 33 points
5 posts
-
0
votes1
answer236
viewsA: How to add values in the middle of a foreach?
Although not recommended, it is possible to use tags @php and @endphp within your view. Could be done in this case something like: ... @php $total += $lancamento['valor']; @endphp <td…
-
0
votes1
answer45
viewsA: My index is giving a return of Undefined variable: image
Its function store is not sending any variable call image for your view. Try to return the route to your controller accessing the function index at the end of its function store, something like:…
laravelanswered GuilhermeLib 33 -
0
votes1
answer20
viewsA: PHP - Getting SQL sum through Prepared Statment
Hello, I noticed you’re using PDO, right? In that case you could try it that way: $stmt2 = $con->prepare("SELECT SUM(product_qty) AS value FROM public_order_checklist WHERE order_code =…
phpanswered GuilhermeLib 33 -
2
votes1
answer774
viewsQ: Error changing state checkbox in Reactjs
I’m still learning React in the state part of a component. My activity is simple: by clicking the checkbox the state of the CHECKED component should change to true and change the value of a text…
-
1
votes2
answers517
viewsA: Slow response (PHP MYSQL)
Friend, this technology has been obsolete since PHP version 5 and has been removed with version 7. I recommend using the mysqli or PDO library for connection to the database using PHP.