Posts by lkzvieira • 157 points
10 posts
-
1
votes1
answer97
viewsA: Update is not performed in the Database using Sequelize and Nodejs
router.post('/articles/update', (req, res) => { const { id, title, body, category } = req.body || {} try { Article.update({ title, body, categoryId: category, slug: slugify(title) }, { where: {…
-
0
votes0
answers51
viewsQ: Replication Does Not Work
In my configured replication, Slave does not execute Master’s instructions and also does not ignore the tables and the database I specified. I’m using the MySql 5.5 Follows the Archive my.cnf…
-
1
votes1
answer330
viewsA: I cannot restore database in mysql
You are not selecting which database will receive your SQL file. Try to perform the following step: mysql -u root -h localhost -preg_users After Logar: create database reg_users; Use reg_users;…
-
3
votes3
answers363
viewsQ: Problem with Between in Mysql?
In an input and output control system there is a table cad_entrada_saida where it has two columns in the bank dEntrada and dSaida, these two columns are like varchar and recording the data in the…
-
1
votes1
answer491
viewsQ: Group Mysql output in PHP
I have two tables in my database cad_usuario and the cad_automovel. The User registered in the first table may have several vehicles registered in the second table. SELECT aut.usuario_id, aut.marca,…
-
3
votes3
answers665
viewsQ: Form Validation with Submit
In My project I have three formularies being one independent of the other. The form1, form2 e form3. The form1 are mandatory fields to be filled in, and these data will be necessary to generate the…
-
0
votes1
answer392
viewsA: Access permission for a PHP + AD + Oracle system
If you are authenticating an LDAP database, you can obviously query which group these users belong to. In PHP there is a function where you bring these groups, part of the idea where the group…
-
2
votes4
answers437
viewsA: Error checking IF with array in PHP
That would work too! $matriculas = array(array('chave'=>1), array('chave'=>3)); foreach($matriculas as $obj){ foreach ($obj as $value){ if($value == $row['id_curso']){ echo '<a href=""…
-
0
votes0
answers774
viewsQ: Generate PDF by Ajax
What I am trying to do is for the user to click the button generate of a form, manages a .pdf by Ajax request, ie I have three pages, where the Index.php this form, the controller.php this is the…
-
1
votes1
answer453
viewsQ: Pass Ajax (X-Editable) data via $_POST
I am trying to receive data from a form, where some fields use Ajax more specifically the plugin X-Editable. When receiving in my PHP page appears the error message below. HTML: <form…