arianhojat Posted April 4, 2007 Share Posted April 4, 2007 <?php $oldRoutedTo = 379; echo '$oldRoutedTo='. $oldRoutedTo .'<br/>'; $routedTo = $oldRouterTo; echo '$routedTo='. $routedTo .'<br/>'; ?> for me this outputs $oldRoutedTo=379 $routedTo= shouldnt $routedTo=379?!?!?! thanks in advance, hopefully if i am doing something real dumb in the morning. Quote Link to comment Share on other sites More sharing options...
arianhojat Posted April 4, 2007 Author Share Posted April 4, 2007 weird... if i renamed $oldRoutedTo=379 to $old, it works. then if i rename back to $oldRoutedTo, it works. errrrr hate peoblems like this that make no sense. Could php somehow cache variables heh? Quote Link to comment Share on other sites More sharing options...
aebstract Posted April 4, 2007 Share Posted April 4, 2007 <?php $oldRoutedTo = '379'; echo "$oldRoutedTo"; $routedTo = "$oldRoutedTo"; echo "$routedTo"; ?> Both should echo 379 in this example? I am not sure what you actually want it to do, hopefully this is it. Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted April 4, 2007 Share Posted April 4, 2007 You misspelled the variable in this line: <?php $routedTo = $oldRouterTo; ?> "$oldRouterTo" != "oldRoutedTo" Ken Quote Link to comment Share on other sites More sharing options...
arianhojat Posted April 4, 2007 Author Share Posted April 4, 2007 DOH, haha!, errr i need glasses. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.