Questions tagged as 'mysql'

2
answers

How to save data from a form automatically?

Hello, good evening, I need your help, I want to automatically save what is typed in a text area in my mysql database, I've heard that it has to do with Ajax, I tried with this code I have there, but is not working, data is not being saved....
asked by 18.03.2017 / 01:52
1
answer

How to get element id just inserted - JAVA [duplicate]

How do I get a id of an element just inserted in the Database in Java? Something like: mysql_insert_id() no PHP .     
asked by 05.02.2017 / 17:44
1
answer

View events fullcalendar codeigniter

Hello! I want to retrieve the events from the database and display them in the calendar. Can you help me do that? So far, I have the following codes: Model: Public function obter_noticias() { $sql = "SELECT * FROM noticias WHERE noticias.id...
asked by 11.01.2017 / 17:18
1
answer

Doubt with sql in laravel?

Today I have a query that is returning me duplicate data, I made the sql change more than needed to change it. How can I leave in the same structure as select (DB :: raw? The current code looks like this: $atividades = $this->ativ...
asked by 20.01.2017 / 19:21
1
answer

Retrieve and store the ID from a login screen for use on other CRUD screens [closed]

I need as described in the title, retrieve an id from a select and store it to use in Crud's screens, I tried to do but it still is not working right thank you since help is already given, thank you HTML Login Screen <!DOCTYPE html>...
asked by 20.01.2017 / 20:37
1
answer

What is the correct way to return treatment

Good afternoon my friend, I have a wrong treatment and I would like to solve it. I can not see the information. Code line <option value="<?php echo $results[0]['id_vendedor']; ?>"><?php echo $results[1]["nome_vendedor"]; ?>...
asked by 10.01.2017 / 16:51
1
answer

Double association with sequelize

I have the following relation with the sequelize // Tasks.js sequelize.models.tasks.belongsTo(sequelize.models.users, { foreignKey: { type: DataTypes.INTEGER, field: 'ASSIGNEE', allowNull: true }, as: 'assignee' }); s...
asked by 08.01.2017 / 14:12
2
answers

Insert data from an array into a mysql database

I get a json from an android application. This json is a java class that was converted with json's Gson to a string. After the web server in php receives this json I convert to an array. I want to make a generic insert in my web server, where...
asked by 07.01.2017 / 14:16
1
answer

You have an error in the syntax of your SQL

I am learning php and I am trying to make a combobox, it is pulling the data from the bank correctly however at the time of displaying the result it presents this error:    You have an error in your SQL syntax; check the manual that   corresp...
asked by 09.03.2017 / 18:12
1
answer

SELECT user by Date

I have Select mysql that searches my clients for the name, email for the date of the day ... I need to get the results that are today's (WHERE data_cad='$dataHoje') and I need to select one by one to send an email to it (I'll us...
asked by 20.12.2016 / 00:56