a2bardeals Posted June 13, 2006 Share Posted June 13, 2006 So I have hit a wall. I have two problems.First,I have two lists that are dependent on variables. a daily events list (daily.php) and a monthly events list (monthly.php) they both have variables to set which day or month to view.If i am looking at monthly.php i can use html to pass variables just by<a href="monthly.php?mo=jan">Jan</a>ormanually typing in the URLhowever when i try to set a default value for $mo in monthly.phpe.g. $mo = date('M') // to auto detect todays date i cant change the variable via the URL or a link to view other months or daysSecond,I have a page called lists.php which includes the two files together<? include 'daily/daily.php'; ?><br><? include 'monthly/monthly.php';?> If i use links on both pages to pass variables the URL comes out like[a href=\"http://www.domain.com/mysql/monthly.php?mo=jan\" target=\"_blank\"]http://www.domain.com/mysql/monthly.php?mo=jan[/a]and i get a File Not Foundi think i need to use Global variables but i have no idea how to set that up...any help will be very sweet! Link to comment https://forums.phpfreaks.com/topic/11932-global-variables/ Share on other sites More sharing options...
fenway Posted June 14, 2006 Share Posted June 14, 2006 Sounds like more of a PHP question than a MySQL question, but maybe someone else will know. Link to comment https://forums.phpfreaks.com/topic/11932-global-variables/#findComment-45388 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.