zero-perfoliate
zero-perfoliate

Author Topic: Don't know PHP Help  (Read 376 times)

Offline bjpage

  • New PHP Members
  • Posts: 1
  • Karma: +0/-0
Don't know PHP Help
« on: February 05, 2009, 11:27:38 AM »
I have a been asked by my company to change a few things on a website that is php. I do not know php only html.
they want to be able to change an image in the database from a user admin page. The admin page and everything else is up and running. What happens is when you go to the update listing page it shows you the image link but you are not able to browse and change the image by uploading a new one. How can I add this function so it will replace or add the image to the database. I can provide more info if needed just tell me what you need to know.

Thanks

Barry

Offline PhPHelper

  • http://Digiscapers.com
  • Full Member
  • PHP Problem Solvers
  • ****
  • Posts: 179
  • Karma: +50/-0
    • Bad Apple Mail
Re: Don't know PHP Help
« Reply #1 on: February 10, 2009, 02:18:50 PM »
what I would do is delete the existing image and then go through the upload process again to add a new image I have a tutorial on deleting files with php here: http://www.webguideuk.com/php/delete-rows-from-a-mysql-database-with-a-confirmation

also if you need to know how to upload files here another tutorial I wrote: http://www.webguideuk.com/php/upload-files-and-add-them-to-a-database-with-php-and-mysql

Should help.

 

zero-perfoliate