Jump to content


Photo

if this one url, if that another url


  • Please log in to reply
2 replies to this topic

#1 libinaz

libinaz
  • Members
  • PipPip
  • Member
  • 12 posts

Posted 09 July 2006 - 09:42 PM

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
$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
} 


#2 dagnasty

dagnasty
  • Members
  • PipPipPip
  • Advanced Member
  • 66 posts

Posted 09 July 2006 - 10:48 PM

I'd like to help you but I don't understand what you're asking.

#3 AV1611

AV1611
  • Members
  • PipPipPip
  • Advanced Member
  • 997 posts

Posted 09 July 2006 - 11:04 PM

I told you yesterday, do an IF THEN ELSE Clause... refer to my last post...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users