-4

after much attempts i failed to implement a principal image for the article using an image upload and mysql.

In the admin page I have a form with tinymce textarea for the article and an image upload for the principal article image.

I need to upload the image into the database with the text of tinymce, and display it in the index.

I am grateful to who can help me.

SardaFilm
  • 1
  • 3
  • 1
    Please show us what you've tried, and outline the ***exact*** problem - PHP for the style? (What?) or uploading the image, or is it storing the image and retrieving it? – ʰᵈˑ Jul 18 '14 at 10:26
  • I need help for the php part. UPLOAD | STORING IN THE DATABASE | VIEW IT IN INDEX. – SardaFilm Jul 18 '14 at 10:32
  • Do you have any code to show us? Then we can see where you're going wrong. – ʰᵈˑ Jul 18 '14 at 10:36
  • No, i've search a help in internet but i dont'find anything. In some article talk only of wordpress -.- – SardaFilm Jul 18 '14 at 10:38
  • Show us what you have tried, nobody is going to do ALL the work for you – Lemuel Botha Jul 18 '14 at 12:26
  • I asked for help, I did not need the code, but tutorials for help me. @LemuelBotha i have solved with the answer of 'Harry'. Bye – SardaFilm Jul 18 '14 at 12:48

1 Answers1

0

As stated in the comments, it seems you're wanting a tutorial on how to;

  • Upload an image to your server
  • Store the image in a MySQL database
  • Retrieve the image from MySQL

Some useful resources;

Some Notes

  • Please use PDO not not vanilla mysql_* to write/read from your MySQL database, due to insecurities and it being deprecated.
    • The about.com link uses mysql_*, so it's probably not a "useful" resource, but it will give you the concept.
  • Don't ask SO to code for you - we will fix things for you, and point out where you're going wrong
Community
  • 1
  • 1
ʰᵈˑ
  • 11,279
  • 3
  • 26
  • 49