Small Back Office [closed]

4

I am creating a small back office in PHP, MySQL and HTML and I have a small question.

Table:

IDNoticia
Dia
Mes
Titulo 
Noticia

Then in HTML / PHP I will echo to show the day, month, Title E Noticia but I have a doubt regarding the Annex.

Because there may be news that has an attachment as I have in this HTML

 <a href="#">Titulo Teste</a> 

Can I put the attachment also in MySQL and then how can I call MySQL for href ?

    
asked by anonymous 28.01.2015 / 12:46

1 answer

0

Hello! It is recommended to save the path / reference to the file in the database.

Once saved, in your href, you can put the contents of the attached column and it will already be connected to your file.

Remembering that you need to verify that the file is actually in the path indicated.

    
29.07.2015 / 20:20