Questions tagged as 'mysql'

1
answer

Uploading and Retrieving an Image with Angular

Let's say I have a user registration form where I want to save a photo of it. I send this data by POST to the server (Java) where I make the inclusion in the database. What better way (practice) to send this photo along with the other...
asked by 25.09.2015 / 20:12
1
answer

Error writing database log record

I have a database with MySQL. I am doing the log of this database. Most are working, but I can not get the registry id that has been modified. Example : When changing some data, it should be saved in the log id of the record that was cha...
asked by 06.11.2015 / 12:51
1
answer

List the last record of a table field

I want to list the last record in the table and display, but I can not. The reports table has the field registration date duration and destination_id registration date time duration destination_id 2501 2014-03...
asked by 10.11.2015 / 07:37
2
answers

Registration report with error in method return

I have a problem that I have not been able to resolve for more than a week. I want to do a report of entries for a particular site. In the report, I want to list the Cities and their total of registrations. Previously, I would make a qu...
asked by 18.09.2015 / 21:06
2
answers

Search for birthdays of the month

I would like to make a condition where you only display the birthdays of the month. My controller looks like this: public function index() { $ultimoDia = date("t", mktime(0,0,0,date('m'),'01',date('Y'))); $condicoes['order'] = array('F...
asked by 18.09.2015 / 14:39
2
answers

day counting system in php

Good morning how can I do a system that registers the current date in the bank and then I want it to show as new type so I want it while the date it was registered is less than 15 days it shows as new and then it quit how to do that?     
asked by 20.09.2015 / 15:33
1
answer

Organize time table in Database [closed]

For constructing a table on the site that will contain a listing of all days of the week, how can I create these tables in the database? For example: Bus line schedules from one city to another: From CityA to cityB Mon to Fri 7:00 a....
asked by 27.09.2015 / 23:44
1
answer

What to do after mapping?

I want to make a system for placing and fetching data in a bank. It is an agenda that the user inserts the site, the commitment and the priority. For now, that's all. I've already started mapping. The question is: Do I need the MySQL Connecto...
asked by 30.09.2015 / 15:44
2
answers

Select does not work when clicking button

I'm looking for a contract at the bank, but clicking submit nothing is returned: Follow the code below: class Config { // specify your own database credentials private $host = "localhost"; private $db_name = "biodata"; private $username...
asked by 14.01.2016 / 14:17
1
answer

Image in the Database with Input File

Form: <form action="recebe.php" method="POST"> <label>NOME DO CLIENTE:</label> <input type="text" name="nome" style=" margin-left: 50px; "><br><br /> <label>TIP...
asked by 12.01.2016 / 18:59