Jump to content

Archived

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

libinaz

if this one url, if that another url

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]

Share this post


Link to post
Share on other sites
I told you yesterday, do an IF THEN ELSE Clause... refer to my last post...

Share this post


Link to post
Share on other sites

×

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.