greenba Posted March 13, 2006 Share Posted March 13, 2006 Hi,I have the following text area:<textarea name="textarea" cols="38" rows="10">www.domain.comwww.domain1.comwww.domain2.comwww.domain3.com</textarea>What I would like is to know how to make to store those sites in my mySQL database one by one.Any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/4847-save-into-database-from-text-area/ Share on other sites More sharing options...
shocker-z Posted March 13, 2006 Share Posted March 13, 2006 $domains=explode("\n",$_POST['textarea']);foreach ($domains as $domain) {mysql insert statement using $domain as the var to input}that should work.. Quote Link to comment https://forums.phpfreaks.com/topic/4847-save-into-database-from-text-area/#findComment-17072 Share on other sites More sharing options...
greenba Posted March 13, 2006 Author Share Posted March 13, 2006 thank you Quote Link to comment https://forums.phpfreaks.com/topic/4847-save-into-database-from-text-area/#findComment-17091 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.