Register

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 5 of 5
  1. #1
    Senior Member
    Join Date
    Sep 2003
    Location
    Sydney
    Posts
    114
    Member #
    3051
    This code should put two lines between the drop-down and the submit button, no? It's not working for me... - http://www.pacesettertravel.com/pace...=presentations

    I cannot for the life of my work out why. Is it something to do with the PHP?:nervous:

    PHP Code:
    Selection:<br />
    <?php
    $query  
    "SELECT * FROM events ORDER BY date, time";
    $result mysql_query($query);
    echo 
    "<select name=\"events\">";
    while(
    $row mysql_fetch_assoc($result)){
        if (
    $row['date'] >= date('Y-m-d')){
            
    displayEvents($row);
            echo 
    "<option name=\"description\" value=\"$row[description]\" class=\"formstyles\" />$row[description]</option>";
            }
        } 
    ?>
    <br /><br />
    <input type='submit' value='Submit Form' class="formstyles" />
    <input type="reset" name="reset" id="reset" value="Reset" class="formstyles" />

  2.  

  3. #2
    Senior Member Steax's Avatar
    Join Date
    Dec 2006
    Location
    Bandung, Indonesia
    Posts
    1,207
    Member #
    14572
    Is it just me, or is the closing of the <select> tag missing?
    Note on code: If I give code, please note that it is simply sample code to demonstrate an effect. It is not meant to be used as-is; that is the programmer's job. I am not responsible to give you support or be held liable for anything that happens when using my code.

  4. #3
    Senior Member
    Join Date
    Sep 2003
    Location
    Sydney
    Posts
    114
    Member #
    3051
    No no it was missing.

    I swear I replied to this like 2 mins after!

  5. #4
    Senior Member Steax's Avatar
    Join Date
    Dec 2006
    Location
    Bandung, Indonesia
    Posts
    1,207
    Member #
    14572
    Am I correct assuming that your problem has been solved?
    Note on code: If I give code, please note that it is simply sample code to demonstrate an effect. It is not meant to be used as-is; that is the programmer's job. I am not responsible to give you support or be held liable for anything that happens when using my code.

  6. #5
    Senior Member
    Join Date
    Sep 2003
    Location
    Sydney
    Posts
    114
    Member #
    3051
    Yep


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 03:00 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com