Jalrock
12-04-2002, 02:07 AM
The following code is activated by a link that has the userid in it.
//SELECT OPPONENT
//////////
if ($action=="selectuser") {
$therebattlestats=$DB_site->query_first("SELECT username, battle_armor, battle_intel, battle_magic, battle_skill, battle_armor, battle_health FROM user WHERE userid='$userid'");
$battle_username = $therebattlestats['username'];
$battle_health = $therebattlestats['battle_health'];
$battle_intel = $therebattlestats['battle_intel'];
$battle_magic = $therebattlestats['battle_magic'];
$battle_skill = $therebattlestats['battle_skill'];
$battle_armor = $therebattlestats['battle_armor'];
$DB_site->free_result($therebattlestats);
eval("\$therestats = \"".gettemplate('battle_there_stats')."\";");
eval("dooutput(\"".gettemplate("battle_main")."\");");
}
However it is not picking up the userid in the link.
Any help is greatly appreciated.
//SELECT OPPONENT
//////////
if ($action=="selectuser") {
$therebattlestats=$DB_site->query_first("SELECT username, battle_armor, battle_intel, battle_magic, battle_skill, battle_armor, battle_health FROM user WHERE userid='$userid'");
$battle_username = $therebattlestats['username'];
$battle_health = $therebattlestats['battle_health'];
$battle_intel = $therebattlestats['battle_intel'];
$battle_magic = $therebattlestats['battle_magic'];
$battle_skill = $therebattlestats['battle_skill'];
$battle_armor = $therebattlestats['battle_armor'];
$DB_site->free_result($therebattlestats);
eval("\$therestats = \"".gettemplate('battle_there_stats')."\";");
eval("dooutput(\"".gettemplate("battle_main")."\");");
}
However it is not picking up the userid in the link.
Any help is greatly appreciated.