brainonastick Posted July 11, 2006 Posted July 11, 2006 Find A Course course_name starting_date venue presenters stream type_of_search: Find All Find Any Find
brainonastick Posted July 11, 2006 Author Posted July 11, 2006 I spotted a syntax error in $starting_date but I have fixed this and still no joy.
mlindal Posted July 11, 2006 Posted July 11, 2006 Here is some code I use to trouble shoot: print " -"; print_r($somevariable); //use a variable you want to check on print "-"; This prints the variables neatly so you can see what is happening You might try $Course_SearchData for $somevariable and place the code in around line 33 of your code. also print_r($REQUEST); //will show all the variables being posted. And finally what do you get for: echo $Course_SearchResult['errorCode']; Is there an errorCode at the top of the page other than '0' ?
mlindal Posted July 11, 2006 Posted July 11, 2006 hang on a second... you have two 'foreach() statements in your php Remove the: foreach($Course_SearchResult['data'] as $key=>$Course_SearchData); from the header and you should be fine... This is because you are wanting to use it in the html to provide a list of courses.
brainonastick Posted July 12, 2006 Author Posted July 12, 2006 Thanks for the above. I fixed the bug though I'm not sure how. However I did want to remove the second foreach stuff and have now done so.
Recommended Posts
This topic is 6779 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now