- Joined
- Nov 10, 2007
- Messages
- 260
- Reaction score
- 2
hi all, i took this script from Kalonline Website Thread
well when there isnt any castle owner then it writes nothing.. i dont know why
here is the script:
<?php
//if you use windows auth mode
$msconnect = mssql_connect("localhost");
$msdb = mssql_select_db("kal_db", $msconnect);
$plist = "SELECT [Name] FROM Guild WHERE [GID] = (SELECT [GID] FROM GuildCastle)";
$pplist = mssql_query($plist);
while($list = mssql_fetch_array($pplist)){
if($list[Name] == ""){
$gn = "No Guild";
}
else
{
$gn = $list[Name];
}
echo "<b>";
echo $gn;
echo "</b>";
}
?>
i just think there is something messed up cause there is a line [ $gn = "No Guild"; ]
if someone would tell me what the problem is i would be grateful
thanks anyway
well when there isnt any castle owner then it writes nothing.. i dont know why
here is the script:
<?php
//if you use windows auth mode
$msconnect = mssql_connect("localhost");
$msdb = mssql_select_db("kal_db", $msconnect);
$plist = "SELECT [Name] FROM Guild WHERE [GID] = (SELECT [GID] FROM GuildCastle)";
$pplist = mssql_query($plist);
while($list = mssql_fetch_array($pplist)){
if($list[Name] == ""){
$gn = "No Guild";
}
else
{
$gn = $list[Name];
}
echo "<b>";
echo $gn;
echo "</b>";
}
?>
i just think there is something messed up cause there is a line [ $gn = "No Guild"; ]
if someone would tell me what the problem is i would be grateful
thanks anyway
