Questions tagged as 'mysql'

1
answer

Convert column to row [duplicate]

This is the select of my table, the query I'm using follows in the image below: It brings the normal result, but I wanted it to bring it this way: | Id_Unica | Pixel | Inch | Quantity | 18 1080p 15 2 Can it be personal?...
asked by 13.11.2014 / 14:17
2
answers

Fill in several combobox

I can fill a combobox with DataTable, but in my case I need to fill 2 combobox and 1 checkedboxlist with data from a MySQL bd //formulário cadastro private void frmCadastroRecibo_Load(object sender, EventArgs e) { Classes.DBconect con = ne...
asked by 11.12.2014 / 05:53
1
answer

How to insert data in mysql via ajax + php + foundation 5

I wanted to know how I can enter data in MySQL via Ajax + PHP using the Zurb Foundation 5 Framework? Does the "data-reveal-ajax" property of the framework already override an insert Ajax function?     
asked by 12.01.2015 / 05:59
1
answer

SQLSTATE 42000: Syntax error or access violation: 1071 Specified key was too long; max key length is 767 bytes with PHP

After I created the project with the command composer create-project --prefer-dist laravel/laravel laravel-scout I made the following changes in the .env file DB_DATABASE=course DB_USERNAME=root DB_PASSWORD=1234 Then I created the...
asked by 11.10.2017 / 19:53
3
answers

Error: "You have an error in your SQL syntax" [closed]

I'm getting the following error when time to perform a query to insert data into a table in the database:    You have an error in your SQL syntax; VALUES ('Refined Sugar', '2', '') 'at line 1 My code: <html> <head>...
asked by 06.03.2014 / 01:48
4
answers

Program to manage MySQL database in Windows? [closed]

Does anyone know how to tell me some program to manage database > in Windows? On Mac I use one called Sequel Pro , however it is Mac only. Does anyone know of any similarities?     
asked by 12.03.2014 / 18:56
2
answers

How to print the SQL statement being sent to the bank?

I would like to know how to write a SQL for control purposes of the statement being sent to the database: $sql = $pdo->query("SELECT * FROM imovel WEHRE CATEGORIA = 'APARTAMENTO'"); How to print the SQL statement being sent to the bank?...
asked by 03.10.2014 / 18:34
3
answers

Specifying fields I do not want in MySQL

In MySQL, when we are going to make a SELECT , we can usually specify each field we want to return. SELECT id, nome FROM usuarios However, let's imagine a scenario where I have 50 columns in a table and I did not want the senha...
asked by 09.02.2015 / 15:04
2
answers

How to make a select in the bank to not bring repeated values?

For example you have in the table the values: green, red, blue, blue, pink, pink, pink, yellow. I would need to return from the table colors only once blue and pink. Do you have any way to do this?     
asked by 14.07.2015 / 19:33
3
answers

Pass checkbox list to php

How can I pass a php page to a selected checkbox list, I have this that shows me the checkboxes, but I'm having trouble sending them to php. function SelecionaChecks() { var Check = document.getElementsByName("check");...
asked by 02.06.2014 / 22:38