• Hi there,

    I would like to execute a query in the following way:

    $result = $wpdb->query(“CREATE TABLE …”);

    The query itself works, I tested that in my database. The query was fired. But $result is always FALSE ($result == FALSE) afterwards.

    Seems to be with create & drop queries, insert queries seem to work.

    Has anyone an idea how to fix this?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘$wpdb->query() always returns FALSE’ is closed to new replies.