Jump to content

if this one url, if that another url


libinaz

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.