Posts by Igor Barbosa • 20 points
5 posts
-
-3
votes1
answer44
viewsA: Get the last insert id ready
You can use the method: $mysqli->lastInsertId() Returns the ID of the last inserted row
phpanswered Igor Barbosa 20 -
0
votes2
answers5329
viewsA: The difference between req.params and req.query
Normally query parameters are used for queries/filter. For example let’s assume that your application works with companies and employees. We could take the following route: GET…
node.jsanswered Igor Barbosa 20 -
1
votes1
answer354
viewsA: How to make a repeat loop wait for a function to be executed,
You can perform this processing using javascript async/await. First you will adjust the function that performs the download to return a Promise, so you can use the await method to wait for the…
node.jsanswered Igor Barbosa 20 -
0
votes1
answer98
viewsA: Change will mask a Textfield according to the choice in a Selectfield
You can resolve this easily using the React-text-Mask library. Take an example: import React from 'react' import MaskedInput from "react-text-mask"; function InputMaskCustomPhone(props) { const {…
reactanswered Igor Barbosa 20 -
0
votes1
answer54
viewsA: Doubt about React-Router
You need to separate common routes from admin routes. Take an example: // OtherRoutes.jsx export function OtherRoutes(props){ return ( <div> <nav/> <Switch> <Route exact…