Jump to content

dclamp

Members
  • Posts

    102
  • Joined

  • Last visited

    Never

Posts posted by dclamp

  1. 16.

     

    For real?

     

    Yes for real.  Why would you think I'm not for real?  lol

     

    16.

     

    For real?

     

    I am 16 as well.

     

    @corbin: Junior Year?

     

    Graduated.

     

     

     

     

     

     

     

     

     

     

     

    Kidding.  Yeah, I'm a junior lol.

     

    haha, you actually had me thinking, until i scrolled to reply...

     

    Were you born in 1992?

  2. Police can go through anything on your persons IF they have a valid reason.

     

    Like if you are walking down the street with your backpack, they just got a call about fresh graffiti, and your fingers have spray paint on the tips, Then they can go through your bag. If you're sitting at your desk, they cant walk up and look into your bag.

     

    No they can't, my friend is a cop.

     

    yes they can. I am taking a Criminal Justice course right now, and my dad is a cop ;)

  3. Police can go through anything on your persons IF they have a valid reason.

     

    Like if you are walking down the street with your backpack, they just got a call about fresh graffiti, and your fingers have spray paint on the tips, Then they can go through your bag. If you're sitting at your desk, they cant walk up and look into your bag.

  4. ILMV stand for i love my vans, and no, not transit vans --> http://www.extreme-direct.co.uk/ProdImg/20879_1_large.jpg

     

    And the whole 'this thread is useless without pics' notion is not enough encouragement for me to post 'almost nude' pics of my girlfriend :P although I would say that if I did do that, I would have no meat+veg to speak of :D

     

    Ah Ben, nice to see that i finally found you. I will vouch for Ben, he has a GF, and she is SOOOOOOOOOOOOOOOOOO...nice... ;)

     

    Anyway. My name is Dylan, Im 16, just about 17 (Dec 27th). I have been coding in PHP for the past 2.5 years. Some place i would really like to visit is the UK so i can meet up with some of my buddies that i talk with.

  5. wow. you school sucks. I cant believe they would go through all the trouble just so you cant have mp3 players.

     

    And also yes, they are allowed to confiscate it if they want. Legally they are your "guardians" from the moment you leave your house in the morning, to the moment you step back into it after school.

  6. a forum dedicated to php that doesnt suck!

     

    I have been apart of VBForums since 2006, mainly in their one PHP forum helping out the few people who ask for help...

     

    Then i tried Internet.com's PHPBuilder site (VBForums sister site) and forum... it sucked. i didnt like the people there.

     

    And then someone suggested PHPFreaks, and i am satisfied.  :)

  7. Well first you need to have the script figure out what page your on. We can use PHP_SELF

     

    $page = $_SERVER['PHP_SELF'];
    

     

    Then we will use IF statements for each menu item

     

    <li><a href="#" title="" <?php if ($page='home.php'): ?>class="current"<?php endif; ?>>Home</a></li>
    <li><a href="#" title="" <?php if ($page='aboutus.php'): ?>class="current"<?php endif; ?>>About Us</a></li>
    <li><a href="#" title="" <?php if ($page='services.php'): ?>class="current"<?php endif; ?>>Services</a></li>
    <li><a href="#" title="" <?php if ($page='work.php'): ?>class="current"<?php endif; ?>>Our Work</a></li>
    <li><a href="#" title="" <?php if ($page='contact.php'): ?>class="current"<?php endif; ?>>Contact Us</a></li>
    

     

    of course your going to need to customize it to you needs.

     

    result...

     

    <li><a href="#" title="" class="current">Home</a></li>
    <li><a href="#" title="" class="current">About Us</a></li>
    <li><a href="#" title="" class="current">Services</a></li>
    <li><a href="#" title="" class="current">Our Work</a></li>
    <li><a href="#" title="" class="current">Contact Us</a></li>

     

    any ideas?

     

    Forgot double equal sign:

     

    <li><a href="#" title="" <?php if ($page='home.php'): ?>class="current"<?php endif; ?>>Home</a></li>
    <li><a href="#" title="" <?php if ($page=='aboutus.php'): ?>class="current"<?php endif; ?>>About Us</a></li>
    <li><a href="#" title="" <?php if ($page=='services.php'): ?>class="current"<?php endif; ?>>Services</a></li>
    <li><a href="#" title="" <?php if ($page=='work.php'): ?>class="current"<?php endif; ?>>Our Work</a></li>
    <li><a href="#" title="" <?php if ($page=='contact.php'): ?>class="current"<?php endif; ?>>Contact Us</a></li>
    

     

  8. try

     

    <?php
    $this_file = strrchr($_SERVER['REQUEST_URI'], '/');
    $this_file = str_replace('/', '', $this_file);
    $file = explode("?", basename($this_file));
    $this_file = $file[0];
    
    echo '<ul>';
    
    echo '<li><a href="#" title="" ';
    	if($this_file == 'index.php' || $this_file == '')
    			echo 'class="current"';
    echo '>Home</a></li>
    
    
    <li><a href="#" title="" ';
    	if($this_file == 'aboutus.php')
    			echo 'class="current"';
    echo '>About Us</a></li>
    
    <li><a href="#" title="" ';
    	if($this_file == 'services.php')
    			echo 'class="current"';
    echo '>Services</a></li>
    
    <li><a href="#" title="" ';
    	if($this_file == 'ourwork.php')
    			echo 'class="current"';
    echo '>Our Work</a></li>
    
    <li><a href="#" title="" ';
    	if($this_file == 'contact.php')
    			echo 'class="current"';
    echo '>Contact Us</a></li>';
    
    echo '</ul>';
    ?>
    

     

    It is bad practice to use PHP to display HTML. Your Method seems a little too much for this task also.

  9. Well first you need to have the script figure out what page your on. We can use PHP_SELF

     

    $page = $_SERVER['PHP_SELF'];
    

     

    Then we will use IF statements for each menu item

     

    <li><a href="#" title="" <?php if ($page='home.php'): ?>class="current"<?php endif; ?>>Home</a></li>
    <li><a href="#" title="" <?php if ($page='aboutus.php'): ?>class="current"<?php endif; ?>>About Us</a></li>
    <li><a href="#" title="" <?php if ($page='services.php'): ?>class="current"<?php endif; ?>>Services</a></li>
    <li><a href="#" title="" <?php if ($page='work.php'): ?>class="current"<?php endif; ?>>Our Work</a></li>
    <li><a href="#" title="" <?php if ($page='contact.php'): ?>class="current"<?php endif; ?>>Contact Us</a></li>
    

     

    of course your going to need to customize it to you needs.

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