JamesCliff
Programmer
Hi all,
Im making a page called edit.php to update table records. I have a page called list.php which passes the SaleID for each record through the URL and to the edit.php page.
Now ive done some searching and looking around the internet for help with this, however tutorials ive found are often wrong or incomplete and not working. Others ive found are not suitable for what i need.
My table consists of SaleID, Image_Ref, Title, Description, Date, Price fields. However i will only need to concentrate on Title, Description and Price fields as those are the only fields the user will be able to update, as Date is auto added and Image_Ref is non updatable and editable.
So basiclly how will i be able to create a php script that displays the fields: Title, Description, Price from the selected record using the SaleID passed in the URL, this record data is displayed in a form which is editable to the user. Then at the bottom there is an Update button. I need it all to be done on one php script page, so the select query and update query are all on the same script.
Ive seen examples of it but its alot more confusing as multiple queries are used eg. select and update.
I would be very greatful for some guidance in this.
Thanks alot
Jim
Im making a page called edit.php to update table records. I have a page called list.php which passes the SaleID for each record through the URL and to the edit.php page.
Now ive done some searching and looking around the internet for help with this, however tutorials ive found are often wrong or incomplete and not working. Others ive found are not suitable for what i need.
My table consists of SaleID, Image_Ref, Title, Description, Date, Price fields. However i will only need to concentrate on Title, Description and Price fields as those are the only fields the user will be able to update, as Date is auto added and Image_Ref is non updatable and editable.
So basiclly how will i be able to create a php script that displays the fields: Title, Description, Price from the selected record using the SaleID passed in the URL, this record data is displayed in a form which is editable to the user. Then at the bottom there is an Update button. I need it all to be done on one php script page, so the select query and update query are all on the same script.
Ive seen examples of it but its alot more confusing as multiple queries are used eg. select and update.
I would be very greatful for some guidance in this.
Thanks alot
Jim