By darrindickey on
I've got a file with 2 functions. One function has a db_select query. At one point in the other function, it calls the first function, but the query won't run. However, if I pull the query out and paste it directly into the second function, it runs fine. Is there something special I need to do inside of the first query to make it recognizable to the second query when called?
Comments
Seeing the code would make it
Seeing the code would make it easier for people to provide help (please remember to place code between <code> and </code> tags).
function matchup_contents()
A problem I notice is that
A problem I notice is that matchup_contents() uses $user but does not declare it as global.
Alright, I added: global
Alright, I added:
to the function. It returns a response of NULL.
How about adding return
How about adding
as the last line in the function.
That was it! Thanks!!
That was it! Thanks!!