Questions tagged as 'mysql'

1
answer

Mysql variables do not work with php mysqli_fetch_array ()

I set two variables in MySQL to simplify another Query that I want to deploy to my system. Using this direct command in the DBMS, it works fine, however, when I want to use as a query string in my php script, it does not work. Gives an error in...
asked by 11.09.2018 / 15:11
2
answers

Problem accentuation PHP and MySQL [duplicate]

I have a question regarding accentuation, specifically the return of% with%. My bank has collation Ç , I'm using HTML tags: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html lang="pt-BR"> <head>...
asked by 07.12.2015 / 13:09
2
answers

Update edits all information instead of only one specifies, when I place where for a specific edit nothing is edited, what to do?

I am making a code where the person adds records to the site that are shown to it in list in a table, in each row has a button to edit, when I edit some information all other records are changed, when I put a where at the end of the update code...
asked by 07.08.2017 / 23:41
2
answers

What is the best way to create tables with users who can have multiple emails?

What is the best way to create the e-mail table, since the client can have multiple e-mail, I created two situations one email_client and the other email? What is the best way to handle query agility, Could you help me?     
asked by 06.07.2016 / 00:50
2
answers

Doubt Mysql compare several columns

Good Night, I have a project where I need to compare which employee meets certain requirements, the bank structure looks like this: I have a table with the punctuation required for each position and in each requirement, I wanted to k...
asked by 05.10.2018 / 01:35
3
answers

Uploading Images with PHP - Mysql

I need to upload an image in MySQL, ie the image path, do you have any practical method to do?     
asked by 17.03.2014 / 15:24
1
answer

Display recent products with php in thumbnails [closed]

I have a page and need to display in the index a 4 thumbs with the latest products registered in my bank mysql, I want to do this using php. If anyone can help, I appreciate it. My index uses bootstrap 3.     
asked by 30.06.2016 / 14:31
1
answer

Correct Sum result php mysql

Code used to get the result <?php $total = 0; while($row = mysql_fetch_object($trabalho)) { $total += $row->valor; echo "<tr><td>$row->os</td><td>$row->d...
asked by 04.05.2016 / 19:52
1
answer

Query calculating dates with INNER JOIN

Save personal, Here has an example that a guy from the community posted here and I am trying to adapt my needs but an error arises: #1248 - Every derived table must have its own alias My query SELECT date_format(TABLE_2.data, '%d/%m/%Y...
asked by 19.11.2014 / 19:12
1
answer

return rows from a 10-by-10 block query by making a loop in this query? [closed]

Person, I have a problem. For example, I need to make a SELECT in a huge table, and I want it to return rows in the range of 10 by 10. For example: 1,2,3,4,5,6,7,8,9,10 to 11,12,13,14,15,16,17,18,19,20 , and so on. Cas...
asked by 02.03.2016 / 18:07