libinaz Posted July 9, 2006 Share Posted July 9, 2006 HI, can I have a page that a user selects and it checks the database if a condition exists...if that condition exists it refreshes to one page...if that url does not exist, then it goes to another page?something similar to [code]$institutionname = $_POST["institutionname"];$query_payment = "SELECT * FROM institution_tbl WHERE institutionname = '$institutionname' and expired = '0'";$institutionypayment = mysql_query($query_contact) or die("Problem with the query: $query_payment<br>" . mysql_error());$row = mysql_fetch_assoc($institutionpayment);if (isset($row['expired']) && $row['expired']=="0") {{ // redirect to affiliate page?> <meta http-equiv="refresh" content="0;URL=https://mysite.com/membership/paid.php"><?php} [/code] Link to comment https://forums.phpfreaks.com/topic/14120-if-this-one-url-if-that-another-url/ Share on other sites More sharing options...
dagnasty Posted July 9, 2006 Share Posted July 9, 2006 I'd like to help you but I don't understand what you're asking. Link to comment https://forums.phpfreaks.com/topic/14120-if-this-one-url-if-that-another-url/#findComment-55310 Share on other sites More sharing options...
AV1611 Posted July 9, 2006 Share Posted July 9, 2006 I told you yesterday, do an IF THEN ELSE Clause... refer to my last post... Link to comment https://forums.phpfreaks.com/topic/14120-if-this-one-url-if-that-another-url/#findComment-55315 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.