antonyjohn Posted August 15, 2007 Share Posted August 15, 2007 hai.. i have one problem in my website.i have one registration page in which i have several text based fields and 5 upload fields...which will be images. now what i have to do is that insert all the text based data to a table named product. the images should be inserted to a table named productimage... In the productimage table the insertion format should be like this.. imageid productid image 1 26 1.jpg 2 26 2.jpg 3 26 3.jpg 4 26 4.jpg 5 26 5.jpg Quote Link to comment https://forums.phpfreaks.com/topic/65006-problem-on-inserting-to-database/ Share on other sites More sharing options...
Orio Posted August 15, 2007 Share Posted August 15, 2007 Ok... So whats the problem? Orio. Quote Link to comment https://forums.phpfreaks.com/topic/65006-problem-on-inserting-to-database/#findComment-324449 Share on other sites More sharing options...
antonyjohn Posted August 16, 2007 Author Share Posted August 16, 2007 need to know how to insert like that into the database Quote Link to comment https://forums.phpfreaks.com/topic/65006-problem-on-inserting-to-database/#findComment-325406 Share on other sites More sharing options...
elkidogz Posted August 16, 2007 Share Posted August 16, 2007 insert into `<table name>` `<fields>` VALUES `<values for each field>` Quote Link to comment https://forums.phpfreaks.com/topic/65006-problem-on-inserting-to-database/#findComment-325412 Share on other sites More sharing options...
Sesquipedalian Posted August 16, 2007 Share Posted August 16, 2007 Uh.. maybe you should actually come up with a bit of code before you say there's a problem. Just search things on databases in the PHP manual, or on websites that give tutorials.. it's pretty straight forward. Quote Link to comment https://forums.phpfreaks.com/topic/65006-problem-on-inserting-to-database/#findComment-325449 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.