it was definitely the extra opening brace (thanks : )). then I discovered a couple of other problems like I didn't want to only query where expired = '0'.
What I want is if the member institution isn't expired '0', then it goes to one page page, if the institution is expired, then it takes them to another page.
So, now I have a new problem
"Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource..."
I have tried mysql_fetch_row, assoc, etc.
<?php
$institutionname = $_POST['institutionname'];
$query_payment = "SELECT expired FROM test_tbl WHERE institutionname = '$institutionname'";
$institutionypayment = mysql_query($query_payment) or die("Problem with the query: $query_payment<br>" . mysql_error());
$row = mysql_fetch_array($institutionpayment);
if (isset($row['expired']) && $row['expired']=="0") {
// redirect to affiliate page
?>
<meta http-equiv="refresh" content="0;URL=https://mysite.com/membership06/memberaffiliateapp.php">
<?php
}
else
{
// redirect to unpaid membership page
?>
<meta http-equiv="refresh" content="0;URL=https://mysite.com/membership06/unpaid.php">
<?php
}
?>
many thanks