Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Time Help / Form help
Old 09-20-2005, 08:58 PM Time Help / Form help
Average Talker

Posts: 21
Name: Connor
Location: Knob Noster, Mo
Trades: 0
I want to make a script to make some links show at a cirtain time and then show offline at the other times. This doesn't work>
PHP Code:
$now date("G");
if((
$now 6) OR ($now 12)) {
     echo 
"<div class='content' align='center' style='font-weight: Bold;'>Forms are offline</div>";
} else {
     echo 
"<div class='content' align='center'>";
     echo 
"<a href='signup.php?op=web'>Web Hosting</a><br><a href='signup.php?op=ts'>Teamspeak Hosting</a>";
     echo 
"</div>";

I also want to make a form to edit a user but when they edit thier own info they don't have to put a password in if they don't want to change it and also so the admin can edit thier info and not have to put a password in the blank for it to stay the same.
Connor is offline
Reply With Quote
View Public Profile Visit Connor's homepage!
 
 
Register now for full access!
Old 09-21-2005, 05:27 AM
rungss's Avatar
Skilled Talker

Posts: 67
Name: Bijay Rungta
Location: Mumbai, India
Trades: 0
Quote:
Originally Posted by Connor
PHP Code:
$now date("G");
if((
$now 6) OR ($now 12)) {
     echo 
"<div class='content' align='center' style='font-weight: Bold;'>Forms are offline</div>";
} else {
     echo 
"<div class='content' align='center'>";
     echo 
"<a href='signup.php?op=web'>Web Hosting</a><br><a href='signup.php?op=ts'>Teamspeak Hosting</a>";
     echo 
"</div>";

Change thhe first line to if(($now > 6) AND ($now < 12))
Because the condition if(($now > 6) OR ($now < 12)) that you've given is always true.

Next

add a check box clicking on which displays two password fields for entering password and if this checkbox is unchecked these fields disappear you can do this using DIV tag

In the server side check if the check box is checked and update the password field if it is
rungss is offline
Reply With Quote
View Public Profile Visit rungss's homepage!
 
Old 09-21-2005, 03:07 PM
Average Talker

Posts: 21
Name: Connor
Location: Knob Noster, Mo
Trades: 0
The AND didn't work, any other ideas... Please I can't get this to work and I have people that won't stop bothering me on why these are down.

Last edited by Connor; 09-23-2005 at 03:04 PM..
Connor is offline
Reply With Quote
View Public Profile Visit Connor's homepage!
 
Reply     « Reply to Time Help / Form help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11799 seconds with 12 queries