help with mysql and php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
joesmoh
Forum Newbie
Posts: 6
Joined: Wed Sep 03, 2003 12:30 pm

help with mysql and php

Post by joesmoh »

Hi, I have lots of pages that are these two kinds...

<CENTER><B><FONT SIZE=+3>
Some Title
</FONT></B></CENTER>
By: An Author
<BR>
E-mail: email@domain.com
<BR>
<BR>
...LOTS OF TEXT...
===

<CENTER><B><FONT SIZE=+3>
Some Title
</FONT></B></CENTER>
<BR>
<BR>
<BR>
...LOTS OF TEXT...

I need help with a code that will distinguish between the two. Then, it will store the data into a database: title, email address, and data.

Thanks!
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Can you be a little more specific?

Eg do you need help with database queries / handling page calls / an admin interface - or the lot?
joesmoh
Forum Newbie
Posts: 6
Joined: Wed Sep 03, 2003 12:30 pm

Post by joesmoh »

I need help with coding the script to store each file into the database. I am using PHP and storing it into a MYSQL database.

Like, I know you would use the fopen in a loop to read each file. Then, I heard I might have to use regular expressions to take the input of each file. But, I do not know how to code this...
Post Reply