Page 1 of 1

help with mysql and php

Posted: Sat Oct 18, 2003 2:02 am
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!

Posted: Sat Oct 18, 2003 6:27 pm
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?

Posted: Sun Oct 19, 2003 11:29 am
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...