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 February 24th, 2003, 01:53 PM
bridie bridie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Halifax, Nova Scotia, Canada
Posts: 5 bridie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
ltw_calendar - pass variable to ltw_class.php

Hi! I love the ltw_calendar, however I've run into a bit of a problem in trying to pass a variable to calendar.php and so on to ltw_classes.php.

My basic idea is that I'm going to have a list of venues. The user will choose one for details on the venue and a link to the venue's event calendar. The calendar will show events only for that particular venue. I can pass a value of $vid from my source page to calendar.php no problem, but calendar.php while requiring once ltw_classes.php will not share the variable it received from my source page. When the query is run (modified by myself 'SELECT * FROM events.....AND WHERE venue_id = $vid' sort of thing) it tells me that vid is undefined.

I've tried just about everything and am wondering if anyone else has run into the same problem? Could you let me know what you did?

Cheers!

Reply With Quote
  #2  
Old February 24th, 2003, 03:31 PM
MadAlbert MadAlbert is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Brisbane
Posts: 5 MadAlbert 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 MadAlbert
RE: ltw_calendar - pass variable to ltw_class.php

maybe register globals is off (as it should be
try this:
mysql_query("SELECT....AND WHERE venue_id = '".$_REQUEST['vid']."'");

Reply With Quote
  #3  
Old February 24th, 2003, 03:57 PM
bridie bridie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Halifax, Nova Scotia, Canada
Posts: 5 bridie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: ltw_calendar - pass variable to ltw_class.php

Thanks for that - I hadn't even thought of globals settings. Unfortunately it didn't work. Still getting the undefined variable error message. I've tried setting a session variable as well, but that just created more problems. Hmmm...I'll keep looking. Thank you anyway - I appreciate it :-)

Reply With Quote
  #4  
Old February 24th, 2003, 11:24 PM
MadAlbert MadAlbert is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Brisbane
Posts: 5 MadAlbert 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 MadAlbert
RE: ltw_calendar - pass variable to ltw_class.php

put
phpinfo(32);

at the top of the calendar page and see what variables it is getting

Reply With Quote
  #5  
Old February 25th, 2003, 03:40 PM
bridie bridie is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Halifax, Nova Scotia, Canada
Posts: 5 bridie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: ltw_calendar - pass variable to ltw_class.php

Thanks for that. Hmmmm...it appears that ltw_classes.php is indeed getting the value of vid (1),but is somehow dumping it somewhere along the code. Interesting. It's a very good starting point, though - I'll review the code again and see where it's dumping it. Thanks again!

Reply With Quote
Reply

Viewing: Codewalkers ForumsProjectsltwCalendar > ltw_calendar - pass variable to ltw_class.php


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 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek