Support » Plugins » SQL Processing in a Page

  • From a WordPress page. I want to be able to retrieve the Bible reference for a daily Bible reading from an SQL file I created that I will use to issue a call and format the data to be presented on the page. I have the call working with the passage parameter hard coded. The problem is I can’t get any code to access the SQL table I created.

    To test the access to my table I am using the plug in insert-php to write the PHP code which is below.


    global $wpdb;

    $myrows = $wpdb->get_results( “SELECT reading_date, reading_passage FROM 90DayGospelPlan” );

    echo “my rows = ” $myrows;


    When it runs I get nothing. I would appreciate it is someone would steer me in the right direction. Thanks in advance

  • The topic ‘SQL Processing in a Page’ is closed to new replies.