ankycooper Posted September 14, 2006 Share Posted September 14, 2006 hey i need a form fom which i can insert multiple records for each of the fields need helpempid, name, phone, address Link to comment https://forums.phpfreaks.com/topic/20696-insert-multiple-recordslets-see-who-good-at-their-stuff/ Share on other sites More sharing options...
Zane Posted September 14, 2006 Share Posted September 14, 2006 We're not here to write you're code for youif you want that check out the PHP Freelancers formthere are plenty of people willing to do it....but it might cost ya...who knows Link to comment https://forums.phpfreaks.com/topic/20696-insert-multiple-recordslets-see-who-good-at-their-stuff/#findComment-91526 Share on other sites More sharing options...
ankycooper Posted September 14, 2006 Author Share Posted September 14, 2006 i want to learn it. and not get it donealraedy searched google cant find any clue Link to comment https://forums.phpfreaks.com/topic/20696-insert-multiple-recordslets-see-who-good-at-their-stuff/#findComment-91527 Share on other sites More sharing options...
joshi_v Posted September 14, 2006 Share Posted September 14, 2006 Ok.If you want to insert all the fields in to same table try thisif($empid)insert into `table name` (id,empid) values(id,$empid);if($name $$ $name)update 'table name' set name ='$name' where id ='id value' //Here i am assuming that u r not doing auto incrementing of the id .so here u have to insert previous id ur are using for empid.elsehere u have to write an insert querysame for other fields also.If in case u want to insert into different tabel it is much easier than previous oneJust write an insert query for each and every field.Hope it will helpsCheers :) Link to comment https://forums.phpfreaks.com/topic/20696-insert-multiple-recordslets-see-who-good-at-their-stuff/#findComment-91637 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.