hi,
many issues here, so I can answer only few of them. After all it's better for you to figure these things out by your self.
- Retrive the number of rows from a table
you can submit a query where you "select count(id) from ..." or you can check affected rows using mysql_affected_rows() function after query
- Select the field in the table holding the string (sequentially)
donno what you mean by sequentally. Have you looked mysql like statement
"select id, name, age where name like '%john%'..."
- Split the string into seperate words and save them into an array.
check php manual for explode / split functions
not much help but anyway....
Zpiff