So I would like to add a paid only page in my app in PHP. In the MySQL database, it has a 0 for no donor and a 1 for a donor in a category called "donor". Would someone be willing to point me in the right direction to redirect someone to a different page if "donor" doesn't equal 1.

Here is what I have planned out in my head.

At it's simplest:

<?php
// Make sure there is absolutely nothing (including whitespace) before that opening tag

// Populate $donor from session or DB, then:
if(!$donor) {
  header('Location: https://example.com/non_donor_page.php');
  exit;
}

// rest of donor-only page...
    Write a Reply...