ltwCalendar
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsProjectsltwCalendar

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old May 5th, 2002, 06:21 AM
Beat Down Beat Down is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Red Oak, TX, USA
Posts: 6 Beat Down User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Beat Down
ltwCalendar Issue

Matt,

I get the following error when trying to add an event to the calendar:

Error: A problem was encountered while executing this query.

Any ideas? It worked one day but not the next.

I am not aware of any changes done to our site that would have affected the calendar (ie. no mySQL database structure mods, or movements and no calendar code mods).

Reply With Quote
  #2  
Old May 5th, 2002, 06:22 AM
Beat Down Beat Down is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Red Oak, TX, USA
Posts: 6 Beat Down User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Beat Down
RE: ltwCalendar Issue

BTW: It'll show current events just fine.

Reply With Quote
  #3  
Old May 5th, 2002, 09:37 PM
shakesfear78 shakesfear78 is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Frederick, Md
Posts: 1 shakesfear78 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: ltwCalendar Issue

I too am having the same problem. I was able to add about 4 events and then it started giving me this error every time I tried to add an event.

Reply With Quote
  #4  
Old May 5th, 2002, 09:38 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: ltwCalendar Issue

In the ltw_classes.php file around line 468 which should read
$query = "INSERT $this->calendar_table VALUES('', '" . strip_tags($name) . "', '" . $date . "', '" . $start_time . ":00', '" . $end_time . ":00', '" . strip_tags($description) . "', " . $recurring . ", " . $dayofweek . ")";

add:

echo "<BR>$query<BR>";

after it..

that will show the query that is trying to be run....let's take a look at that and maybe we can find the problem...

Reply With Quote
  #5  
Old May 6th, 2002, 05:11 AM
Beat Down Beat Down is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Red Oak, TX, USA
Posts: 6 Beat Down User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Beat Down
RE: ltwCalendar Issue

Here you go, Matt. I hope this helps.

I copied/pasted this directly from the pop-up window:

---POP-UP WINDOW---
INSERT ltw_events VALUES('', 'CAL Match - Ballz', '2002-05-07', '21:00:00', '22:30:00', 'CAL League Match Opponent: Ballz MAP: mp_beach SERVER: [*:TP's Bathroom Drama START TIME: 9:00pm Eastern Match Type: SW ROUNDS: ABBA - 4 Total SW Rounds SCORE: 1st team to 3 points wins the match', 0, -1)
Error: A problem was encountered while executing this query.

---SNIP FROM MY ltw_classes.php---
$query = "INSERT $this->calendar_table VALUES('', '" . str
ip_tags($name) . "', '" . $date . "', '" . $start_time . ":00', '" . $end_time . "
:00', '" . strip_tags($description) . "', " . $recurring . ", " . $dayofweek . ")"
;
echo "<BR>$query<BR>";
$this->db->db_query($query);

Reply With Quote
  #6  
Old May 6th, 2002, 05:26 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: ltwCalendar Issue

The problem looks like that I am not adding slashes to the query. I am assuming the magic quotes is on. Looks like it isn't on your server. try adding an event and not having a single quote ( ' ) in the description....

Reply With Quote
  #7  
Old May 7th, 2002, 02:11 AM
Beat Down Beat Down is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Red Oak, TX, USA
Posts: 6 Beat Down User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Beat Down
RE: ltwCalendar Issue

That did it. Thanks man. I didn't even think about that when looking at the code.

Reply With Quote
  #8  
Old May 13th, 2002, 10:40 PM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: ltwCalendar Issue

This problem is fixed in the new version....

Reply With Quote
  #9  
Old May 14th, 2002, 12:17 AM
Beat Down Beat Down is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Red Oak, TX, USA
Posts: 6 Beat Down User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Beat Down
RE: ltwCalendar Issue

Sweet!

Is there an expected release date of the new version?

Thanks man!

Reply With Quote
  #10  
Old May 14th, 2002, 12:25 AM
Matt Matt is offline
Contributing User
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 12 m 16 sec
Reputation Power: 7
RE: ltwCalendar Issue

Yep, it's up on the server now

Reply With Quote
Reply

Viewing: Codewalkers ForumsProjectsltwCalendar > ltwCalendar Issue


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek