Thank You WIZJID, for your help.
You did help me getting started to find a few more errors. Now that I have succeeded in avoiding all the sstem error messages, all I need is to get the actual data output right.
With the script below, I still get a positive response (i.e. response says subdomain name is available although it actually exists in the table).
Where am I going wrong now...?
Kind Regards
Philip
<?
//Modus subdomain
if ($mode == subdomain) {
//require("./mysqlCall.php");
include("connect.php");
$link_identifier = mysql_connect($hostname,$username,$passwd);
if ($link_identifier<=0)
{
echo mysql_errno().": ".mysql_error()."<br>";
exit;
}
// $subdomain = $subdomain."%";
// $name = $name."%";
// $nummer = $nummer."%";
$SQLStatement =
"select ID, subdomain from cm_users where subdomain == '$subdomain'
order by ID";
$result = mysql_query($SQLStatement,$link_identifier);
echo $result;
$num_rows = $result;
echo $num_rows;
if ($num_rows >1)
{
echo "The desired subdomain name is already being used - please try different subdomain name.<br><br>\n";
}
// else
if ($num_rows <=1)
{
echo "The desired subdomain name is still available.<br><br>\n";
}
mysql_close($link_identifier);
}
?>