Sql
script
then u will have to update pod in ibwf_settings when you want to adjust the user id
PHP Code:
INSERT INTO `ibwf_settings` ( `id` , `name` , `value` )
VALUES (
NULL , 'pod', '1'
);
PHP Code:
$pod = mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='pod'"));
echo "<small>Random Gallery Pics</small><br/>";
$sql=mysql_fetch_array(mysql_query("SELECT id, avatar FROM ibwf_users WHERE id='".$pod[0]."'"));
$nick = getnick_uid($sql[0]);
echo "<small><img src=\"$sql[1]\" width=\"100\" height=\"100\" alt=\"$sql[0]\"/><a href=\"index.php?action=viewuser&who=$sql[0]&sid=$sid\">$nick</a></small><br/><br/><br/>";
Comment