Ahh i see now it already asks you to include some functions in your global_funcs file meaning you probably haven't included the file to your register.php
To fix do as follows below
Add this to global_funcs
function class_dropdown($connection, $ddname = "classID", $selected = -1)
{
global $db;
$ret = "<select name='$ddname' type='dropdown'>";
$q =
$db->query(
"SELECT `classID`, `classNAME`
FROM `player_class`
ORDER BY `classID` ASC");
if ($selected == -1)
{
$first = 0;
}
else
{
$first = 1;
}
while ($r = $db->fetch_row($q))
{
$ret .= "\n<option value='{$r['classID']}'";
if ($selected == $r['classID'] || $first == 0)
{
$ret .= " selected='selected'";
$first = 1;
}
$ret .= ">{$r['classNAME']}</option>";
}
$ret .= "\n</select>";
return $ret;
}
function getPlayerClass($uId = NULL)
{
global $db, $userid;
if(!$uId)
$uId = $userid;
$u = $db->fetch_row($db->query("SELECT `player_class` FROM `users` WHERE userid = {$uId}"));
$class = $db->query("SELECT `classNAME` FROM `player_class` WHERE `classID` = {$u['player_class']}");
if ($db->num_rows($class))
{
$c = $db->fetch_row($class);
return $c['classNAME'];
}
else
return "Not Defined";
}
Then in your register.php add
include ('/global_funcs.php');