PDA

View Full Version : PHP Script needed



jobesoft
March 11th, 2001, 05:31
Hello!

I am seeking an PHP Script:

This script should list events in the future an events that are gone shouldn´t be listed. The script shouldn´t use an database.

Thanl you for your help.

BiteTheBugByte
March 13th, 2001, 04:21
What events? Do you mean something similar to a news script or so?

jobesoft
March 15th, 2001, 12:44
Hello!

For example:

Event = My Birthday

When i acces the site 3 days before this day there is this event shown. if i acces the site 3 days after my birthday, the event isnt been shown.

Eclipse
March 20th, 2001, 06:29
You're talking about listing events dependig on their dates. This is a quite common way of showing information meaning listing posts in a certain order.

In SQL, wich can be used with either php or asp, it would look like this:

"SELECT * FROM [events] WHERE [x_date] <= #" & date() & "#;"

(Skip the brackets using php.)

Now you want to do something similar than above using a textfile... you'll have alot of thinking ahead! :-)

jobesoft
March 20th, 2001, 10:09
Thank you for yoour help.

But: I need an complete Script. (with an admin mode would be great)

Does anybody know such a script???

Niaad
March 21st, 2001, 16:08
Yeah, it would be a ton easier if you used a database, I easily threw together my own news script here: http://www.niaad.com/nsprod

It even has a cool monthly archive viewer =) (/news.php)

Using MySQL makes the whole process easier, and it is a lot faster than using .txt files--that is, when the script is used by a person to view your news.

But, like Eclipse said, using .txt files is going to require a lot more thinking :D.