Tag: database

  • Use of mysql_connect in WordPress

    Take a look at this code, found inside a PHP example: This looks familiar, it’s a basic MySQL query example, found on a University of Minnesota Morris server. But what’s wrong with it? The General WordPress rule for mysql_connect: When making an SQL query in a WordPress environment, use the WPDB class, do not use  mysql_connect…