localhost Posted July 30, 2006 Share Posted July 30, 2006 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 TYPES1 = Category2 = 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] Quote Link to comment Share on other sites More sharing options...
localhost Posted July 30, 2006 Author Share Posted July 30, 2006 anyone? Quote Link to comment Share on other sites More sharing options...
tomfmason Posted July 30, 2006 Share Posted July 30, 2006 do you get any errors maybe you should through in a [code=php:0]or die(mysql_error());[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.