Questions tagged as 'mysql'

1
answer

Insert accented word in MYSQL

How can I correctly insert accented words in MySQL? Example: if you try to insert "John" you are recording John. MySQL is as Collation utf8-default collation I get the input data "name" below: <%@page contentType="text/html" pa...
asked by 29.01.2018 / 02:22
1
answer

I can not retrieve the id value through the POST method

I have the following functions: Archive registra_conta.php: if(isset($_POST['acao'])){ if($_POST['acao'] == "inserir"){ inserirConta(); } if($_POST['acao'] == "alterar"){ alterarConta(); function selectIdConta($id){ $banco = ab...
asked by 29.01.2018 / 20:24
1
answer

Error accessing data in Mysql with EF6

When I try to access the data in MySQL via lambda ( EF ), Visual Studio returns the following error:    Method 'MySql.Data.Entity.EFMySqlCommand.set_DbConnection (Method.Data.Common.DbConnection) failed' when trying to access met...
asked by 05.02.2018 / 00:25
1
answer

set LIMIT on pagination of results

I have a problem with a database that I use for testing where I have 1000 records and I have a website that pulls this data to be displayed. I'm using paging in my query this way $read->FullRead("SELECT * FROM teste LIMIT $p , $qt_por_pg");...
asked by 21.01.2018 / 15:35
1
answer

Problem inserting in mysql table

Good afternoon, I have this code: <?php $servername = "xxxxxxxxxxx"; $username = "xxxxxxx"; $password = "xxxxxxxx"; $dbname = "xxxxxxx"; $conn = new mysqli($servername, $username, $password, $dbname); $conn->set_charset('utf8'); $name...
asked by 28.12.2017 / 17:15
1
answer

List mysql data in a modal using php

I would like to list a field that is in the database in a list that is already created. When the user clicks on the "title" field he has to call a modal with some data from the database. What happens, it even calls, only that of the first row, i...
asked by 21.01.2018 / 04:22
1
answer

How to use MySql in Java EE?

I have an application in java (desktop) that does some operations on writes the logs to a table in MySql, I need to make a page that will display this log. I did some testing, but I did not succeed. I'm using Tomcat 9 and eclipse to run....
asked by 27.12.2017 / 17:32
1
answer

Export fopen without the ""

I am using fopen , to export the return of a select, it is exporting correctly, but in certain fields it is appearing "" as I remove "" from export, leaving only ,    Because it is coming out as follows: "rice", "sw...
asked by 02.01.2018 / 20:54
1
answer

Changing field type MariaDB (Mysql)

Staff created a table called records in a test database. In it I was doing the insertion of data of a file cadastros.txt Until then the id primary key when I created it was not auto_increment so for test purposes I made a dro...
asked by 02.01.2018 / 06:05
1
answer

doubt with open and close connection

I would like your help with the connection below, when I close I have the following error, am I doing it correctly? with regard to opening and closing the connection? My pool public class MysqlConnectionPool { private final DataSource dataS...
asked by 02.01.2018 / 21:04