Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199901

[PHP3] troubles... From: Valerio Fioretti (v.fioretti <email protected>)
Date: 01/31/99

Hello there, I'm new in the mailing list and a beginner with PHP3 and
MySQL.
I'm trying to build a database for files to download, I planned a table
like this:
ID
Filename
Section
FileDimension
Date
Notes

The most important thing is the search engine that looks into 'filename'
and 'section' column.
The 'filename' field is input free, the 'section' field can be selected
from a list. There's the possibility to choose ALL, so that the engine
will search in every 'section'.

I've some troubles builing this engine, here are my questions if anyone
can help:

1) I'm using the explode command to split the 'filename' string in more
than one, if the user input more words. $words = explode (" ",$text);
How do I manage them if I don't know how many strings $word[] will be
generated ??

2) How do I make a search on both 'filename' and 'notes' columns,
conditioned by the 'section' with the above strings ?

3) How do I make a search for and ALL value in the 'section' field ?

I think that is enough at the moment... I hope that someone will send
some advices.

Thanks a lot.

------------------------------------------------------------------------
     Valerio Fioretti - ITALY
------------------------------------------------------------------------
E-mail: v.fioretti <email protected>
TMA&TCA Pilot: 2182
------------------------------------------------------------------------
Webmaster di M.F.S http://www.ludus.com/mfs/
Redattore di Ludus http://www.ludus.it/
M.F.S. is an AVSIM's partner
------------------------------------------------------------------------

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3
List administrator:  zeev-list-admin <email protected>