-
Posts
14,780 -
Joined
-
Last visited
-
Days Won
43
Everything posted by .josh
-
nah man, don't be seduced by that line of reasoning. After nuclear fallout, there'll be zombies everywhere. You can't be running from them when you're all fat and shit. They'll just catch you and eat you and take forever to do it and you'll just have to sit there all that much longer.
-
actually I like mcdonalds the best. Something about their prefab patties warms my heart. Probably the cholesterol forming a nicy cozy blanket around it.
-
I'm not ashamed to say I liked it. I liked the cartoony feel of it. I liked a lot of things about it. I'll agree with the repetitive-ness. But hey, when you're looking to numb your mind from a hard day's work, that's an ideal situation to be in. And anyways, mcdonalds doesn't flip their burgers. They come precooked and frozen. Put their patties on a grill and there's this giant press. You close it, wait about 30s and open it. Kind of like a giant George Forman grill. Burger King and Hardees send their burgers through a charbroiler on a conveyor belt. Precooked and frozen, as well. Now wendys on the other hand, that's some serious business. They receive raw meat. Throw it on the grill, 4 corner press with a spatula and everything. Overcooked patties == tomorrow's chili meat. FTW!
-
Hey come on now, WoW used to be good, pre-BC. I don't actually play anymore, lol.
-
usually it's for specifying an anchor. could be using it for pattern matching for a mod rewrite.
-
I hate pugs. damn noobies decked in greens, never been to the instance before. won't listen to a damn thing you say. And then ninja loot. <shakes angry fist> oh...we're talking about dogs...
-
Top of the page: * Home * Help * Search * Admin * Moderate * Profile * My Messages * Calendar * Members * My Bookmarks * Rules * Logout Thread Closed.
-
I'm giving you the same level of respect you're giving our community.
-
You checked out 5 books, have spent 2 months on it, and still no luck. You can't even seem to find rules and guidelines that are stickied in every single forum and at the top of every single page load. Let's be realistic. Maybe you should try something else out. Maybe art? Post a pic of a choo-choo train, I'll critique it for you.
-
google mod rewrite
-
And apparently you don't have any patience either. Nor do you listen. If you read the rules and guidelines posted literally everywhere, you will see what this site is here for, and what is and isn't allowed.
-
That's not how this site works. Stop spamming. Read the rules.
-
I don't think that should really matter. the AND should get evaluated first regardless. But without the parenthesis, it's doing file LIKE '%.zip' AND user='$name' which would evaluate false if it's not a zip file, but then it evaluates all the other ORs and they all come up positive without being filtered by the user. Hence the parenthesis around all of the ORs, which will first evaluate all of them and then filter against the user.
-
so you tried: SELECT file FROM myfiles WHERE (file LIKE '%.zip' OR file LIKE '%.exe' OR file LIKE '%.gmk' OR file LIKE '%.gm6' OR file LIKE '%.gmd' OR file LIKE '%.rar' OR file LIKE '%.zip') AND user='".$name."' (except replacing user='".$name."' with user='somename')
-
how about wrapping some parenthesis around all those OR conditions
-
you sure it's the query string's fault? have you tried running it directly in your db?
-
no. If you want to go that route, you would use the position returned and use substr starting at that position+2 (+1 for the space, +1 more for the starting position of the zip code). Or you could do $text = ' This is your PostalCode: 12353 enjoy!'; preg_match("~PostalCode: (\d{5})~",$text,$code); echo $code[1];
-
column names spelled right, capitalization correct?
-
[SOLVED] Trouble with an if statement dealing with file upload.
.josh replied to Alecdude's topic in PHP Coding Help
exactly. Since it's inside the condition, when it returns 0, the condition is looking at it as false, because... -
[SOLVED] Trouble with an if statement dealing with file upload.
.josh replied to Alecdude's topic in PHP Coding Help
0 is the same as false when it comes to boolean comparisons. -
what does the rightclick > view source look like?
-
$swap is supposed to be based off $id. It takes the id of the item you are clicking up or down on, and uses $id-1 for up, $id+1 for down, checking to make sure there is something to swap. Look: http://www.crayonviolent.com/usort.php That is an example of what it's supposed to do. So yes, if you keep clicking the exact same button, they will keep swapping back and forth.
-
I just tested the query string directly in my db as you have it setup (filtered by proj_id) and it works perfectly. I looked at your code above and it looks exactly like the tutorial (except for the proj_id filters in the queries), so... you sure you're passing the right vars to your function? echo them out inside your function to make sure.
-
haha oops. yeah take out that WHERE. should just be AND proj_id = '$projID'
-
okay you are going to have to add on a condition to the end of the query that restricts it to the current project. Assuming that $projID is correlated with proj_id ... $sql = "UPDATE projectData SET position = CASE position WHEN $id THEN $swap WHEN $swap THEN $id END WHERE position IN ($id, $swap) AND WHERE proj_id = '$projID'";