PDA

View Full Version : Is this possible?


smartalecc5
06-10-2003, 08:34 PM
Ok, I was wondering if his was possible - using either HTML or javascript (or anyother language for that matter)

First of all, let me tell what I need this for, and that will probably help you understnd what im trying to do. I am a lader of a ps2 online 'clan' that has battles against eachother for a game named SOCOM. Often, it is hard to find battles against one another. By this script, it would make it alot easier to accomplish.

Ok, I want a script where you fill out a form, most likely,

Name/Email:
Date:
Time:
etc....
and then you press submit.

Then, another user comes in and enters in a time they want a battle.
The time the wanted the battle is the same! The script magically looks through all of the inputted information and finds the one that matches. It is displayed to the person and an email is sent to the other guy who had the same info.

Is that posible to do? Do you have anyclue how to do it?
If I did not make myself clear, you can contact me at smartalecc5@aol.com, or AIM smartalecc5.

Thanks a whole lot in advance for reading this long article!

pardicity3
06-10-2003, 10:46 PM
First off, try and make your titles a little bit more specific than "Is this possible?"

Your are going to have to use a server-side langauge to acheive what you want to do. Something like php would be your best bet (in my opinion :)). You will also probably want a database to store your information in. The most popular databse choice would be MySQL.

If you choose php and MySQL your first step will be to get the info into the database. Once that is done you will just pull from the databse using something like so:
$query = "SELECT * FROM table WHERE date='$date'";
$result = mysql_query($query);
while ($row = mysql_fetch_assoc($result)) {
echo $row["name"];
echo $row["date"];
echo $row["time"];
}

Granted that was a poorly explained answer I gave you. But it should give you the gist of things :)

SDP2006
06-13-2003, 03:42 AM
It would either have to be (most likely) a SQL or PHP script to do that. JavaScript isn't that advanced. Try the script above for the basic idea:thumbsup:

SDP2006
06-13-2003, 03:42 AM
It would either have to be (most likely) a SQL or PHP script to do that. JavaScript isn't that advanced. Try the script above for the basic idea:thumbsup: