Hi threebluldboys and welcome to DaniWeb :)
The line
return mysql_query($query);
comes before you have defined what $query is. It should probably come at the end of the function as it is returning something.
Hope this helps and happy php'ing!
darkagn
Veteran Poster
1,197 posts since Aug 2007
Reputation Points: 404
Solved Threads: 200