Jump to content

drop down box not oging to specified links?


localhost

Recommended Posts

Help out with this script?

Code:
[code=php:0]
<?php
/*---------------------------------------------------+
| [dotOmega 0.1.0 Beta] Community System
+----------------------------------------------------+
| Copyright © 2006 Robert Playford
| http://dotomega.com
+----------------------------------------------------+
| Filename: forumjump.php - 07-30-2006 - 02:55AM
| File written by: Dan La Manna (Copernicus)
+----------------------------------------------------*/

/*
FORUMS TYPES

1 = Category
2 = Forum
*/

// Require necessary file(s)
require_once "inc/global.php";
require_once "inc/config.php";

echo "
<select name=\"forum_jump\">
";

// Select all categories...
$sel_cats_for = query("SELECT * FROM `" . $config['table_prefix'] . "forums` WHERE `type` = '1'");
while ($rowcats = fetch_array($sel_cats_for)) {
$cat_id = $rowcats['id'];
$cat_title = $rowcats['title'];
echo "
<option><A href=\"showcat.php?cid=$cat_id\">-- $cat_title</a></option>
";

$sel_fors = query("SELECT * FROM `" . $config['table_prefix'] . "forums` WHERE `type` = '2'");
while ($rowfors = fetch_array($sel_fors)) {
$for_id = $rowfors['id'];
$for_title = $rowfors['title'];

echo "
<option><A href=\"forumdisplay.php?fid=$for_id\">Forum</a></option>
";
}
}
?>
</select>
<input type="submit" name="go" value="Go">
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.