Connecting Tech Pros Worldwide Help | Site Map

how to edit a photo in database? using PHP code

Newbie
 
Join Date: Nov 2008
Posts: 1
#1: Nov 3 '08
how to edit a photo in database? using PHP code
zabsmarty's Avatar
Newbie
 
Join Date: Feb 2007
Location: I am from Pakistan
Posts: 25
#2: Nov 3 '08

re: how to edit a photo in database? using PHP code


same as you did precess for add photo but also send photo id as query string or using post method and on next page simple use update query for example

Expand|Select|Wrap|Line Numbers
  1. $sql="update photo set Image='imagename.jpg' where id=1";
  2.  
Markus's Avatar
Moderator
 
Join Date: Jun 2007
Location: York, England, with wolves.
Posts: 4,936
#3: Nov 3 '08

re: how to edit a photo in database? using PHP code


Quote:

Originally Posted by sriharsha

how to edit a photo in database? using PHP code

Sorry, what? There are a million different ways to answer this question because it is so ambiguous.

Post the code you have tried with a more informative question.
Newbie
 
Join Date: Nov 2008
Posts: 3
#4: Nov 3 '08

re: how to edit a photo in database? using PHP code


I want to know as well
Atli's Avatar
Moderator
 
Join Date: Nov 2006
Location: Iceland
Posts: 3,741
#5: Nov 3 '08

re: how to edit a photo in database? using PHP code


Hi.

Like Markus says; The question/title you posted is far to ambiguous to be of any use. We will need to know details about what you are trying to do if you want an answer.

For instance, what type of Database server are you using?
How do the tables you are using look like?
How is you photo stored in the database?

What have you tried so far?
Could we see the code?
Are you getting any error messages?

Please read the Posting Guidelines before posting again.
We require that all members follow these guidelines when posting, or risk getting banned from these forums.

Thank you
Moderator
Reply