Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by Ofloo ( 17 years ago )
$result = mysql_query("SHOW DATABASES LIKE '" . $_DB_PREFIX . "_" . $_SESSION['login'] . "_%'", $_MYSQL['spark']);
if ($result != false) {
$i = "0";
echo("<p><select multiple="multiple" size="8" name="db[]">");
while ($_row = mysql_fetch_array($result, MYSQL_NUM)) {
$_db[$i] = $_row[0];
echo("<option value="" . $_row['0'] . "">" . $_row['0'] . "</option>");
$i++;
};
echo("</select></p>");
@mysql_free_result ($result);
} else {
echo("<p>You don't have any databases right now.</p>");
};
if (!isset($_db)) {
$_db = null;
};
Revise this Paste