WordPress.org

Forums

Alternative for mysql functions listed below (3 posts)

  1. Ratnakar
    Member
    Posted 3 years ago #

    Hi,

    Is there any function in WordPress which can be used as an alternative to following MySQL function:
    -mysql_num_rows()
    -mysql_fetch_assoc()
    -mysql_field_name()
    -mysql_field_type()

    Thank You.

  2. Rohan Kamble
    Member
    Posted 3 years ago #

    I am sure in SM we have used the global variable "$wpdb" to the fetch the data after the select query is fired.

    Hope the following two links are helpful to you:

    http://codex.wordpress.org/Function_Reference/WP_Query
    http://codex.wordpress.org/Function_Reference/wpdb_Class

    Thanks,
    Rohan Kamble

  3. Ratnakar
    Member
    Posted 3 years ago #

    Hi Rohan,

    Thank you for your response.
    We've planned to remove all core mysql function from SM & use $wpdb functions instead but I didn't find any method of $wpdb which can act as an alternative to above mentioned function.

    Thank You.

Topic Closed

This topic has been closed to new replies.

About this Topic