# mysql\_query doesn't perform its query

**URL:** <https://forum.kirupa.com/t/mysql-query-doesnt-perform-its-query/318154>\
**Category:** programming\
**Created:** [January 11, 2011, 9:27pm UTC](https://forum.kirupa.com/t/mysql-query-doesnt-perform-its-query/318154 "2011-01-11T21:27:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atroxe](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@Atroxe](https://forum.kirupa.com/u/Atroxe)\
**Post date:** [January 11, 2011, 9:27pm UTC](https://forum.kirupa.com/t/mysql-query-doesnt-perform-its-query/318154/1 "2011-01-11T21:27:08Z")

</div>

\*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.
