need INSERT INTO code
Posted: Sun Jul 06, 2008 7:33 am
hey guys,
I just wanna know could i insert data into a table in sql according to specific id?
like this -> mysql_query (" INSERT INTO pix (title,imgdata) VALUES (" " , " " ) WHERE id = '$id' ")
my question is,Could i use the word WHERE after the values? If not, is there any other code that could store data within my specific column?
I wanted to do this :
1) Page 1 - admin key in name and id and submit
2) Page 2 - admin could stored data automatically stored into sql table according to ID that been key in earlier.
How do i read the key in ID in the previous page???? Cookies izzit?
pix table : | id | title | imgdata |
Please HELP me by give me a hint!
Thanks
Azhan
_________________________
http://www.productcoverdesign.com- "Cheapest E-cover Design"
I just wanna know could i insert data into a table in sql according to specific id?
like this -> mysql_query (" INSERT INTO pix (title,imgdata) VALUES (" " , " " ) WHERE id = '$id' ")
my question is,Could i use the word WHERE after the values? If not, is there any other code that could store data within my specific column?
I wanted to do this :
1) Page 1 - admin key in name and id and submit
2) Page 2 - admin could stored data automatically stored into sql table according to ID that been key in earlier.
How do i read the key in ID in the previous page???? Cookies izzit?
pix table : | id | title | imgdata |
Please HELP me by give me a hint!
Thanks
Azhan
_________________________
http://www.productcoverdesign.com- "Cheapest E-cover Design"
