mysql_query doesn't perform its query

*Hello there, I happen to have an annoying problem.

I have a function, db_create($table_as_string, $assoc_array).

db_create simply takes the table-var and the assoc, and turns it into a most wonderful query, but when I attempt to perform mysql_query($query) it doesn’t affect anything, at all.

When I, however, echo the query and copy it into phpMyAdmin by hand, it works like a charm. any ideas?*

Oh, nevermind, I got a reply from elsewhere.
My beginner’s mistake was simply that I’d attempted to use $connection, without passing it into the function.