Dose anyone have an answer to this question?
I have a script below, I use this scrip to retrive data from my MySQL database. I have been able to make this script show a spacifyed web page if the result of the query is negative (see line # 32, 33). Now my problem is, I wish to make a specific web page disply if the result is posative? How should I do this? I can not figure it out! Please email me a revised script at "webmaster@dns.li" if you can help.
<body>
<?php
mysql_connect (localhost, dbase, anerson1);
mysql_select_db (domainnames);
if ($domain_name == "")
{$domain_name = '';}
$result = mysql_query ("SELECT * FROM aarp
WHERE domain_name LIKE '$domain_name'
");
if ($row = mysql_fetch_array($result)) {
do {
print $row["domain_name"];
print ("<P>");
} while($row = mysql_fetch_array($result));
print ("<CENTER>WE ARE VERY SORRY!</CENTER>");
print ("<P>");
print ("<CENTER>THE NAME THAT YOU HAVE SELECTED IS ALREADY TAKEN.</CENTER>");
print ("<P>");
print ("<CENTER>PLEASE TRY ANOTHER NAME.</CENTER>");
print ("<P>");
print ("<CENTER><a href=\"http://www.web2.web/netnames/.aarp.html\">CLICK HERE TO SEARCH AGAIN!</a></CENTER>");
print ("<P>");
} else
include("http://liberty.phpwebhosting.com/~dbase/search/.aarp2.html")
?>
</body>