icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old September 11th, 2007, 12:49 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2007
10 posts
Gave thanks: 3
Thanked 0 times
Wondering how I can accomplish this...

I am designing a soccer website and am looking for some type of script/program that will allow an admin to access the site to update field conditions. Something real simple, like you see on the right hand column of this website: http://www.capefearsoccer.com/home/default.asp

It would need the date/time, so visitors to the site would see that it had been updated recently. Does anyone know where I can find something like that? I don't even know what you would call it so I could search for it. TIA!
fourstone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 11th, 2007, 8:16 PM   #2 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2007
23 posts
Gave thanks: 4
Thanked 3 times
Store the type of user in a session e.g SESSION['userType']="admin";
So add a field userType to your DB, assuming you're using a DB :p

For the date just use the Date() function of php, it doesn't come any easier.

I hope this helps you a bit :-)
__________________
Domain: braincracking.net; Server: sh127; Usage:
braincracking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
This user thanks braincracking for this great post!
fourstone (September 11th, 2007)
Old September 11th, 2007, 9:13 PM   #3 (permalink)
Registered User
Fresh Surpasser
 
Joined in Sep 2007
10 posts
Gave thanks: 3
Thanked 0 times
Well, it's certainly a start! I'm sorry to say that I need more detailed instructions, though. I don't expect you to take up your time, but if you know where I could find more details, I would greatly appreciate it. I had no idea where to even begin looking!
fourstone is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 11th, 2007, 11:09 PM   #4 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2007
23 posts
Gave thanks: 4
Thanked 3 times
I'm willing to do that mate, but it's like 5am where I'm living right now :p

I'll look into it tommorow, and give you atleast some links to websites that should guide you in the right direction.

-Ben
__________________
Domain: braincracking.net; Server: sh127; Usage:
braincracking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 14th, 2007, 7:05 PM   #5 (permalink)
Registered User
Comfy Contributor
 
Joined in Dec 2006
Lives in North Carolina, the suck ass state...
152 posts
Gave thanks: 8
Thanked 3 times
To use the php date function use this code

PHP Code:
<?php
date
()
?>
I believe that will show the date.
Otaku is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On