Jump to content

Lamez

Members
  • Posts

    1,686
  • Joined

  • Last visited

    Never

Posts posted by Lamez

  1. so that sounds great, but I have to write a new if statement every time I make a page.

     

    here is my current code:

    <?php
    if($page == "register"){
    $reg = 'class="current"';
    }
    if($page == "home"){
    $home = 'class="current"';
    }
    echo'
    <div id="menu">
    <ul id="si-menu">
    <li><a href="index.php" title="Home" '.$home.'>Home</a></li>
    <li><a href="login.php" title="Login" '.$log.'>Login</a></li>
    <li><a href="register.php" title="Register" '.$reg.'>Register</a></li>
    </ul>
    </div>';
    ?>
    

     

    is there a way around this?

  2. I have a CSS menu and it when you are on the "Home" page, on the menu it is selected. Well I have a dynamic php website, and I want to know how I can tell if the user is on that page so I can use the select feature. I cannot wrap my head on something that could be so simple, I want it to be easily manipulated without touching the source code. How would one go about this?

  3. I am trying to create a mysql query with two order bys, and I am lost.

     

    I want to order by the sticks first, then by the ids, and I am getting every forum topic sticky'ed, and locked.

     

    here is my code:

     

    <?php
    $sql = "SELECT * FROM mb ORDER BY id AND sticky DESC";
    $result = mysql_query($sql);
    ?>
    

  4. I am looking for a new motherboard, but I have a type in mind but wherever I look I cannot find it.

     

    its is the: ASUS M2N-SLI Deluxe AM2 DDR2

     

    I have looked at: amazon, and newegg, tigerdirect, and frys.

     

    So besides ebay, where do you shop?

  5. I am starting something new, and I decided AJAX is the best way  to go  with, but I have never ever worked with AJAX, and was hoping for some direction.

     

    I want to make a prompt, like the DOS. I will enter in information, and the script will check the database for a response.

     

    Example:

    user types: hello

    database response: hi

     

    How would I go about doing this?

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