dclamp
-
Posts
102 -
Joined
-
Last visited
Never
Posts posted by dclamp
-
-
corbin has already suggested a solution to your problem. No need to ask question again.
-
as long as you have apache it should work.
-
Here are to resources that i use for BB code. The second one being the more useful.
-
Im a little confused as to what your code is doing...
You dont need to declare (string) if you are setting it right there.
-
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/
-
16.
For real?
I am 16 as well.
@corbin: Junior Year?
-
Great now I'm going to google for an hour tonight about laws pertaining to rights in schools in my state.
lol
how old are you corbin?
-
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
-
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.
-
theres a recession in the uk, they say it bites anyone who come snear it i never seen it thogh so i dont belive in it.
ahhh. recession is in the air! US and UK? thats lovely...
-
I am pretty sure you can do something like that in SMARTY. but i am not 100%
-
when you use mysql_fetch_array() it comes back as an array, then you can use count() to get the last row.
-
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 although I would say that if I did do that, I would have no meat+veg to speak of
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.
-
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.
-
awkward introduction, i know. Thanks for the welcome.
-
try changing the content to float:left.
-
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.
-
oh yeah that would work.
-
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>
-
the line above it is missing a semi-colon at the end
-
then move all of them into an array first....
$result = mysql_query("SELECT * FROM news WHERE date <= NOW()") or die(mysql_error()); $data = array(); while($row = mysql_fetch_array($result)){ $data[] = $row; } $last = $data[count($data)-1];
ah missed that part...
-
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)];
-
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.
-
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.
confiscating MP3 players
in Miscellaneous
Posted
haha, you actually had me thinking, until i scrolled to reply...
Were you born in 1992?