• mortgage_master

    (@mortgage_master)


    Hi,

    In running a query against a table in a database, I am getting the following message:

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/content/51/5571951/html/wordpress/connect3.php on line 34

    I am assuming that this pulling back a blank recordset, but when I paste the very simple SQL statement directly into phpMyAdmin it runs fine, pulling back many rows.

    Has anyone else had this issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I take it that connect3.php is something that you wrote or had written? And that this is a custom query on the WP tables that uses PHP’s mysql functions not $wpdb?

    Thread Starter mortgage_master

    (@mortgage_master)

    thanks for the comment. I must have been looking at this too long, because I missed the connection string to the database. It is all working now. Thanks again. And yes, the connect3.php file was an include file, so all of the pages on the site can connect to the DB via one file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘MySQL issue on WP site’ is closed to new replies.