Questions tagged as 'mysql'

0
answers

How to save data from localstorage to mysql? [closed]

Is there any way to send the data stored in localstorage to a database? (mysql) Example: As we can see in the image we can have many records in the list, and when I give it in store I want it to be stored in my database just now.   ...
asked by 28.02.2017 / 03:50
1
answer

Problem with mysqli and php, just save me a data

What happens is that I have the following code in which I keep only 1 record in the database, after that I get "registration error" that I indicate that it would leave in case the data is not saved correctly. The strange thing is that if I delet...
asked by 27.02.2017 / 21:47
2
answers

Filter by date PHP and MySQL

Good morning to everyone. I am trying to do a Select by filtering only by date in a DB with MySQL, in timestamp column format, where data with this format is inserted ('Y-m-d H: i: s'). The dates I receive from this form: Fil...
asked by 26.10.2016 / 10:15
2
answers

Problem when loading image to BD in MySQL

I have a problem with uploading the image to BD MySQL! The process is carried correctly until the image of the user's computer is uploaded to my server, but after that, the statement that is responsible for saving values in the database is not e...
asked by 25.10.2016 / 05:55
0
answers

Using jstl and servlet to query db

I'm in a java web application project and I'm trying to do MySQL bd queries and show them in a jsp without using java code. I saw this solution in an answer of an old question, but when executing it it does not show me any record. I have the fol...
asked by 02.11.2016 / 22:50
2
answers

Load CSV file in MySQL

Hi, hoping you can help me. I'm trying to load a csv file which the _pt_part_ should separate into 3 parts    EJ. Full character is 12345678910250L       I have to separate it into 3 fields:       | 123456789 | 102 | 50L | I can now...
asked by 15.02.2017 / 18:12
1
answer

Show results mysql indifferent to shopping cart

I am creating a shopping cart system, which works very well, now the problem comes where it shows the results of the car ( cesta.php ), I want to show results indifferent to what the user has inserted into the car, for so to facilitate if...
asked by 07.10.2016 / 12:50
0
answers

MySQL database problem

I am entering my Cpanel and when I enter MySQL, I get an error like this    Error while connecting to MySQL: (XID sdgzwf) Database Connect Error: Can not connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) Error while...
asked by 15.10.2016 / 00:26
2
answers

Doctrine 2.5 key composite error mapping

Good afternoon I'm doing a project in Symfony 3 in which I use Doctrine 2.5 . In this project I have the following tables: CREATE TABLE companies ( id_company INT NOT NULL AUTO_INCREMENT, id_user INT NOT NULL UNIQUE, name VAR...
asked by 09.11.2016 / 12:09
1
answer

How to add columns to a view in mysql?

I want to make a view contain about 9 columns, so far it's just simple with a single column What happens is that I have qualification_podcast and qualification_articles and I have them in different views, but I would like to join them i...
asked by 25.08.2016 / 03:06