WordPress.org

Ready to get started?Download WordPress

Forums

SQL Processing in a Page (1 post)

  1. wrmayhew
    Member
    Posted 11 months ago #

    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.

    [insert_php]

    global $wpdb;

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

    echo "my rows = " $myrows;

    [/insert_php]

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

Reply

You must log in to post.

About this Topic

Tags