Questions tagged as 'mysql'

2
answers

Problem in insert does not display error [closed]

Personal beauty all? I've already gone through the entire forum and up to other forums and found no answers about it.  If anyone can take a look and point out my error thank you. Follow the form below: <form action="add.php" method="p...
asked by 27.05.2017 / 16:38
1
answer

Is there any way to define a random order by order for an already established order?

If the title of my question was confused, I explain: I want to sort a result of a given query from MYSQL . Example: SELECT * FROM usuarios ORDER BY cidade = 'BH' DESC, cargo = 'Programador' DESC But I would like tha...
asked by 17.09.2015 / 14:41
4
answers

Write MYSQL data in pt-br / UTF8 format

How do I save data in the database in Brazilian format with accents, I used this in connection mysqli_set_charset($conexão, 'utf8'); But now my code is all in PDO how do I save this data in utf8 in PHPMyadmin database? <?php /...
asked by 15.10.2015 / 01:45
2
answers

Select only the first record of a column

The select below returns something like 005-A Produto A 21/AGOSTO 005-A Produto A 20/AGOSTO 005-A Produto A 21/MAIO 005-B Produto B 21/AGOSTO and I would like one record per product equal to the following 005-A Produto A 21/AGOSTO 005-B P...
asked by 21.08.2015 / 22:40
1
answer

Collect data from the wordpress database [closed]

Can you connect to the Wordpress database, and get data from some tables of it and transfer it to a Site?     
asked by 27.08.2015 / 14:05
4
answers

Error message alert

I would like to know how I can fix the following problem I'm having with the alert response. I do INSERT of items to MySQL , so far so good. However, if some files fail and others can be sent in the loop warning, alert...
asked by 29.07.2015 / 07:59
2
answers

how to send a kind of form without button?

I'd like to know how to send a request to the database. in fact not a request but an insert for when I click on radio button it enter the value of radio button on the bank how do I do that?     
asked by 22.10.2015 / 18:48
1
answer

My application does not change data in the database

I'm developing a software for a video store with MVC. There are two problems: not changing people's attributes and displaying the following error:    java.sql.SQLException: Column 'code' not found '. This error is saying that there i...
asked by 27.10.2015 / 18:58
1
answer

Displaying the Same Record Twice [duplicate]

This is my code that makes a table listing <?php $consulta = mysql_query("SELECT * FROM mesas INNER JOIN pedidos WHERE pedidos.mesa = mesas.id and conta = 0"); if (mysql_num_rows($consulta)==true) { while($lnmesas = mysql_...
asked by 03.11.2015 / 19:03
2
answers

MYSQL - Column Order and Performance

I may be asking a silly question, but come on. Does the order of columns in MYSQL interfere with performance in any way (either in writing or in research)? Foreign keys are at the beginning or at the end, the fields type TEXT...
asked by 30.06.2015 / 21:02