serverman
-
Posts
215 -
Joined
-
Last visited
Posts posted by serverman
-
-
here is the whole thing and yeah i is 1-5 never lands on 0... 0 means an error here is more of the script
$i = $r['cat_id']; switch ($i) { case 0: echo "nothing<br>"; break; case 1: echo '<img src="../img/php.gif" alt="" ><br>'; break; case 2: echo '<img src="../img/asp.gif" alt="" ><br>'; break; case 3: echo '<img src="../img/sql.gif" alt="" ><br>'; break; case 4: echo '<img src="../img/java.gif" alt="" ><br>'; break; case 5: echo '<img src="../img/html.gif" alt="" ><br>'; break; }
-
<?php $i = $r['cat_id']; switch ($i) { case 0: echo "nothing<br>"; break; case 1: echo '<img src="../img/php.gif" alt="" align="right"><br>'; break; ?>
why doesnt it show the picture ... the switch works fine
-
OMFG my cable locked up... i am watching attack force and it froze like a screen shot of the show is on
and on all the other channels its the same way with the show that was on it... and its on all my TVs!!!
GAHH it was the movie was just getting good to im pissed i hate cox cable!
its like time stopped on TV and its been like this for 10 mins i had to turn on the radio i haven't done that in like 3 years lol.. i just cant work without the noise
im in FL... local stations suck its almost all country music and rap
lol funny freeze frames tho
-
no ie8 beta sucksIt happens in Firefox. Firefox!!!
As of April of 08, 39% of people were using Firefox. [http://www.w3schools.com/browsers/browsers_stats.asp]
What are the chances an admin with 7k posts would simply be using a crappy browser?
-
i echo' ';
-
ive always coded by hand but i wanted to try zend out
HOW DO YOU SET IT UP?????
were do i set this "include_path"
-
whats the point of a cms
-
how do i add the mysql real escape string to this
<?php //this is just a snippet // Check for a description if (strlen($trimmed['desc']) > 1) { $d = $db->sql_escape($trimmed['desc']); } else { $d = FALSE; $err .= '<div class="err">The description is invalid!</div>'; } // Check for tutorial content if (strlen($trimmed['tut']) > 1) { $con = $db->sql_escape($trimmed['tut']); } else { $con = FALSE; $err .= '<div class="err">The tutorial content is invalid!</div>'; } if ($t && $cat && $d && $con) { $db->sql_query("insert into tut (title,cat_id,description,usr_id,content,time) values('$t','$cat','$d','$uid','$con',now())"); } } ?>
-
just change the time on your computer(server) or are you not the host
sometimes i forget that not everyone is there own host lol
-
agreed
-
well thatsa by your servers time not by the client or viewers time...
is there a way to get clients time via php.... you can always use javascript to tell the server what time it is
-
try removing the //
-
i never did i just act like i know what im talking about jk
i started out playing with scripts now im at the stage of reading up and testing
and like redbull ive been working with basic purebasic and python so i know how to look at code and i think php works alot like basic
not pro
yet
-
you know you can also justYour code should be:
echo "<meta http-equiv=\"Refresh\" content=\"0;url=index.php\">";
note the url= before index.php\
HTH
Dan
echo'<meta http-equiv="Refresh" content="0;url=index.php">'; you might need a 0\; but i dont know lol
-
omg! coldfusion costs A LOT
:o
ColdFusion 8
Buy from US$1,299
or upgrade $899
WTF!!! lol
its like oracal or what ever that sql server is called lol
-
kinda plain ... you should put the text editer above the comment text box
-
uh link?
-
looks so pretty ... im running it on xp now... ill put in on freebsd later.
i must say firefox 3.0 just makes the internet look sexy
lol eh its more heavy on your ram tho(my xp is my crappy work computer 256 ram lol)
how well does the linux verson run?
-
thanks i just forgot
-
why would you use fedora for a server platform it meant for desktop use and uses a lot of memory so it kinda heavy for a server you not use a more light wight Linux like Ubuntu or even go to bsd witch you can turn off your x server(desktop environment) and have more memory for your server i use freebsd ... also bsd comes with inetd witch has ftp and other server technology in it
and why are you using Apache 2.0.x when there is 2.2.x
sorry just bugs me
-
http://profile.myspace.com/index.cfm?fuseaction=music
thats cold fusion
must use both cfm and .asp
what noobs the could do it all php lol
-
2 things
myspace is off cold fusion not php
2nd thing no they block scripts like java and cmf
-
ok I am working on a tutorial system and users can submit tutorials...
i want for when you view the tutorial it will not to execute the any sever side scripts or client side
but i want it to still allow html to work inside the tutorials
i hope i made sence in this post im half asleep
oh i dont have any scripts to share on the viewing part because we haven't started writing it
-
i meant like copy and paste my css lol because i don't want a website looking just like mine lol
ok i fixed the navbar
but i don't know how to fix your error
[SOLVED] whats wrong here
in PHP Coding Help
Posted
i dont know why but this fixed it