July 11, 200619 yr Find A Course course_name starting_date venue presenters stream type_of_search: Find All Find Any Find
July 11, 200619 yr Author I spotted a syntax error in $starting_date but I have fixed this and still no joy.
July 11, 200619 yr 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' ?
July 11, 200619 yr 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.
July 12, 200619 yr Author 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.
Create an account or sign in to comment