SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old October 17th, 2002, 11:57 AM
jwarner_wse jwarner_wse is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 2 jwarner_wse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Script Not Working

I created this scipt from one in a book. When I run it, I get a parse error on line 105. I check my code and that is the ?> the closing php tag. Can anybody help. This script is attached to this post.
Attached Files
File Type: txt calendar.txt (2.2 KB, 217 views)

Reply With Quote
  #2  
Old October 17th, 2002, 02:38 PM
johno692001 johno692001 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 4 johno692001 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
you're just missing a closing brace; the end of the code should look something like:

print ("</BODY>
</HTML>");
}
?>

Reply With Quote
  #3  
Old October 17th, 2002, 02:43 PM
Joe4JC Joe4JC is offline
The name's Joe. Yours?
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Location: Lurking in the shadows...
Posts: 147 Joe4JC User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
As far as I can tell,
PHP Code:
 $StartDate = -$MonthStart
should be
PHP Code:
 $StartDate $MonthStart
.

Hope that works for ya

Cheers & Good Luck,
Joe of 4Life

[edit]Dang, John beat me! I guess I should have noticed that! [/edit]
__________________
Check out 4Life today!

Last edited by Joe4JC : October 17th, 2002 at 02:45 PM.

Reply With Quote
  #4  
Old October 17th, 2002, 03:02 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
I noticed a few things wrong with the script... I'm not sure what it is you're trying to do, but my guess is have the dates displayed for each respective month.

PHP Code:
if((!$Month) || (!$Year)) {
    
$Month=date("m");
    
$Year=date("Y");


You need to close off that IF statement.

Your logic for testing the Start and Last days of the month doesn't seem right... These were the changes I made:
PHP Code:
if (($StartDate <= 0) || ($StartDate $LastDay)) {
    print (
"<TD BGCOLOR=GREEN>
    &nbsp;</TD>"
);
} elseif ((
$StartDate >= 1) && ($StartDate <= $LastDay)) {
    print (
"<TD ALIGN=CENTER>" $StartDate "</TD>");
    }



Hope that helps... Btw, I left the "$StartDate = -$MonthStart" the way you had it, and I don't seem to have any problems.
__________________
____________________________________________
Developer Shed Weekly Writer | DevArticles Forum Moderator
Build Your Own KlipFolio Klip With PHP
FrankManno.com - Under Construction
Design Interactive Group - Under Construction

Reply With Quote
  #5  
Old October 17th, 2002, 03:50 PM
jwarner_wse jwarner_wse is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 2 jwarner_wse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks. Between all you guys. I got my script working.

THANKS AGAIN !!!!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Script Not Working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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 not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway