If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Dec 2003
    Member #
    PHP Code:

            if (
    $topic_type "<tr><td id='row1'>Topic Type</td><td id='row1' width='100%' valign='top'><select class='forminput' name='topic_type'><option value=''>---</option></select></td></tr>";
    $types ";" $class->forum['topic_types'] . ";";

    $Type_Array explode(';',$types);

                foreach (
    $Type_Array AS $type)
                    if (
    $topic_type .= "<option value='".$type."'".($ibforums->input['topic_type']==$type ' checked' '') . ">".$type."</option>";

    $topic_type .=  "</select></td></tr>";

    I'm trying to call $topic_type, but it keeps coming out blank.
    The database is properly populated as well, so there must be a problem with that code.
    Can someone see any obvious errors on my part?


  3. #2
    Senior Member
    Join Date
    Aug 2003
    Member #

    I would check two things:

    1. Do you have a scope problem? In the if{} block, try using $GLOBALS["topic_type"] instead of just $topic_type.

    2. If this is not the problem, check that the if condition is actually evaluating to TRUE. Are you positive that $class->forum['use_topic_types'] is set or is true? If not, then why isn't it?
    eKstreme - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 09:32 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: