Jump to content

Importing Data to MySql from Web Page


wrekanyze

Recommended Posts

I'm using Drupal(a CMS), along with MySQL and PHP to import data into a database.  I'm trying to import a bunch of sentences on one page into the database, but each in their own row.  For example:

 

News

-----

Brand new site

New employee hired

New work acquired

 

Basically, I need to know how to pull those into the database as one row each, instead of pulling all three elements into the database in the same row.  They're all stored in a $content tag, b/c I wrote the page in PHP.  So, any ideas on how to make it, so I can insert the $content into the database, but at a line break, I need to insert a new row?  Any help is greatly appreciated.

 

 

Link to comment
https://forums.phpfreaks.com/topic/45411-importing-data-to-mysql-from-web-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.