|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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! |
|
#2
|
|||
|
|||
|
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']."'"); |
|
#3
|
|||
|
|||
|
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 :-)
|
|
#4
|
|||
|
|||
|
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 |
|
#5
|
|||
|
|||
|
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!
|
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > ltw_calendar - pass variable to ltw_class.php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|