Right Choice Success Institute
$sql1 = sprintf("select * from course where course_id = '%d'", mysqli_real_escape_string($con,$id)); $result1 = mysqli_query($con,$sql1); $num_rows1 = mysqli_num_rows($result1); // echo($num_rows1); if($num_rows1 > 0){ $row1 = mysqli_fetch_array($result1); echo("
" . $row1['name'] . "
"); // Show teaser if Session is not set otherwise show full course content --> if($_SESSION['Access'] > 1){ // Show - in good standings echo($row1['content']); }else if($_SESSION['Access'] < 2){ // Do not show - did not pay echo("
You do not have access to this page content
"); echo("You must complete the purchase of a package to gain access
"); ?> }else{ echo("