Questions tagged as 'mysql'

2
answers

Error Too many connections Hibernate + MySQL

I have an application in development in Java using Hibernate and PrimeFaces, in the list of items I have the option to do a search for some information in real time using several filters. However when I run the application and perform some te...
asked by 17.03.2015 / 17:23
1
answer

Delphi, MySQL, ADOConnection - Convert database data in latin1 to utf8

I'm having trouble converting the strings coming from the database (Mysql - latin1) to UTF8. The case is that I need to get the data in the database encoding for UTF8 to generate an XML with that enconding. I tried some conversions for UTF...
asked by 02.12.2015 / 14:01
1
answer

MySQL Data Entities with Mysql Data 5.3.7

I would like to know if there is any way to use MySQL.Data.Entities with the version of MySQL.Data 5.3.7. In the here statement that works with MySQL.Data (≥ 6.4. 4.0). Is there any other way to use Entity Framewo...
asked by 17.07.2015 / 19:44
2
answers

Error reading dynamically generated JSON with file_get_contents

I have this code that generates a json file to me header("Content-Type: application/json; charset=utf-8;"); $codigo = $_GET['cod']; //variável para parametro que será passado ao servidor via URL $sql1 = mysql_query("Select nome, valor fro...
asked by 24.02.2015 / 03:39
2
answers

count how many days a date range has in another date range

Good morning, I'm doing a query (mysql) and I have four dates periodo1inicio , periodo1final , periodo2inicio and periodo2final . I need to count how many days of period 2 is contained in period 1. Can anyone help me...
asked by 26.02.2015 / 14:42
2
answers

Mysql automatically change data [closed]

Good afternoon, I wanted to implement a system that would cause my database to automatically change the value of one of the fields of an element when the expiration date field was higher than the current system date. I've already tried to implem...
asked by 12.05.2015 / 15:14
1
answer

How to upload in PHP data coming from a Form with support for text and an image?

In my project I have on a page a form to collect data that will be inserted in the database and in a folder of the server. My problem is that in this form I have a support for uploading images. Then in the PHP part to move this information to th...
asked by 25.03.2015 / 12:35
1
answer

How to find an item in a field separated by commas? [duplicate]

I have a field in a table with data separated by a comma: id_regioes: 1,2,3,4,5,6 . When I do the query "SELECT * FROM 'tb_operadora' WHERE 'id_regioes' = 1" , or "= 6" returns ok, but not when they are in 2,3,4,5. Eve...
asked by 23.03.2015 / 14:32
1
answer

Downloaded files stored in the database

Is there any way to download documents stored in a mysql database, in my aplicativo híbrido cordova ?     
asked by 19.05.2015 / 17:39
1
answer

Dynamic Menu in Bootstrap with PHP and Mysql

I have in mysql two tables (subjects and pages), the page table has a field (subject_id), which relates what subject is that page. I would like to mount a menu with submenu in bootstrap This is Table Subjects ID nome_menu_assunto 1 Ti...
asked by 18.05.2015 / 02:58