Probably beause the code has a bug in it.
// show last username
if ($config['showreg']) {
$sth = $dbh->do_query("select U_Username from w3t_Users order by U_Number DESC limit 1");
list($lastUser) = $dbh -> fetch_array($sth);
$lastUserText = "Welcome to our newest member: $lastUser<BR>";
$dbh -> finish_sth($sth);
}
Should do the trick... But I didn't test it out. That's cause fetch_array() returns an array. And when you try to print out an array and not a member in the array PHP is smart and prints "array" to help you debug..
If that code up there doesn't work then this should.
// show last username
if ($config['showreg']) {
$sth = $dbh->do_query("select U_Username from w3t_Users order by U_Number DESC limit 1");
$lastUser = $dbh -> fetch_array($sth);
$lastUserText = "Welcome to our newest member: $lastUser[0]<BR>";
$dbh -> finish_sth($sth);
}
If not then I use the excuse that I didn't really take a close look at it and I'm sleep deprived. And that I'm assuming that fetch_array() returns an array based on the fact that it printed the word "array".
Doug
http://www.netherworldrpg.net