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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.