1) { while ($ss = mysql_fetch_object($result)) { echo "name&lit=on&no_form=on\" target=_new>$ss->name
"; } } else if ($num_found == 1) { $ss =mysql_fetch_object($result); $short_name = explode(",",$ss->name,2); $note_query = "SELECT description from mondesc35 where name like '%$short_name[0]%'"; $note_results = query($note_query); $notes = mysql_fetch_object($note_results); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $ss->attack = preg_replace("/ or /","
",$ss->attack); echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $ss->special_attacks = preg_replace("/,/","
",$ss->special_attacks); echo ""; $ss->special_qualities = preg_replace("/,/","
",$ss->special_qualities); echo ""; $pattern[0] = "/\./"; $replace[0] = ".
"; $pattern[1] = "/:/"; $replace[1] = ":
"; $pattern[2] = "/;/"; $replace[2] = "
"; $notes->description = preg_replace($pattern,$replace,$notes->description); echo ""; echo "
Name:$ss->name ($ss->size $ss->type $ss->descriptor)Hit Dice:$ss->hit_diceInitiative:$ss->initiative
Space:$ss->spaceReach:$ss->reachCR:$ss->challenge_rating
AC:$ss->armor_class
Attack:$ss->attack
Full Attack:$ss->full_attack
Saves:$ss->saves
Ablities:$ss->abilities
Skills:$ss->skills
Feats:$ss->feats
Special Attacks:
$ss->special_attacks
Special Qualities:
$ss->special_qualities
Notes:
$notes->description
"; } else { echo "I See no $monster here
"; } } if (!isset($no_form)) { echo "
"; echo "Monster Name:
"; } if (isset($monster_name)) { show_monster($monster_name); } require("legal/allogc.inc"); require("legal/legal.inc"); ?>