Jump to content

dclamp

Members
  • Posts

    102
  • Joined

  • Last visited

    Never

Everything posted by dclamp

  1. For real? Yes for real. Why would you think I'm not for real? lol 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. corbin has already suggested a solution to your problem. No need to ask question again.
  3. Here are to resources that i use for BB code. The second one being the more useful. http://www.vbforums.com/showthread.php?t=386738 http://penagate.com/dev/php/bbparser/bbcode.phps
  4. Im a little confused as to what your code is doing... You dont need to declare (string) if you are setting it right there.
  5. You need to create a .htaccess file and put the following in it. It will redirect all to the location you specify. RedirectMatch permanent ^/$ http://mydomain.com/
  6. For real? I am 16 as well. @corbin: Junior Year?
  7. 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
  8. 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.
  9. ahhh. recession is in the air! US and UK? thats lovely...
  10. I am pretty sure you can do something like that in SMARTY. but i am not 100%
  11. when you use mysql_fetch_array() it comes back as an array, then you can use count() to get the last row.
  12. 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.
  13. 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.
  14. dclamp

    Finally!

    awkward introduction, i know. Thanks for the welcome.
  15. try changing the content to float:left.
  16. dclamp

    Finally!

    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.
  17. 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>
  18. the line above it is missing a semi-colon at the end
  19. Try this: $result = mysql_query("SELECT * FROM news WHERE date <= NOW()") or die(mysql_error()); //will get the last row. $last = $result[(count($result)-1)];
  20. It is bad practice to use PHP to display HTML. Your Method seems a little too much for this task also.
  21. 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.