-
Posts
4,362 -
Joined
-
Last visited
-
Days Won
11
Everything posted by Zane
-
ya know.. if it's flash help you're really looking for and you're SOooo set on stomping out of this place.. why not try http://www.kirupa.com/forum/ ? Seeing as how the kongregate site is a game and will not answer your question.
-
You'll have to provide a lot more code than that. As far as code goes, the above looks fine.
-
It's not our job at all. Everything we do is completely volunteer. Completely out of the kindness of our own hearts. It's like christmas everyday here... it's just you seem to get coal everyday. If you keep everything within the same thread rather than trying to plant your seed in every board, you might actually get an effective, accurate answer/solution. It may also help to re-think your question. Put it into terms of a 5 year old if you have to... I doubt anyone's gonna be insulted so long as you get your questions point across and not gripe and whine.
-
Ok. I understand. Well instead of using REQUEST_URI try SCRIPT_URI which will give you the entire address.. domain and all. From there you'll need to strip out the protocol first.. such as http:// or https:// THEN you can split it by slash. If it were me though, I wouldn't use list to create my variables as you could run into more problems with adding more subdirectories later on.
-
What is it exactly that you're trying to do. Apparently you're not aware of the usage of split, but you do know the usage of list? If you're splitting on /index.php with a slash (/), then you will only get two results.. The first will be blank and the second will be index.php As for your list() I don't see how you're going to decipher a lvl1 and lvl2 out that... What does lvl1 and 2 stand for in your script? Perhaps your trying to get the variables AFTER index.php? Such as index.php?root=blah&lvl1=blah&lvl2=blah if so... for that you would use $_GET['root'] and etcetera instead of using the $_SERVER variable
-
your coder most likely removed the spaces for a reason. Seeing as how spaces can ultimately make a filename .... not work.. I'd say that was why. If you really want them back I would replace them with something.... Browser friendly... because spaces definitely aren't. So as for commenting that line out... or changing it to the dash.. Don't. Try this and see what happens $filename = str_replace(" ","%20",$file); Why %20
-
$val[$i+1]
-
I was reading through the SMF code is where I got it... that probably explains my confusion. I still feel completely retarded for posting this topic now.. Yeah.. that's it. Lesson of the day: Always reread your OP at least 5 more times before ever posting it.
-
good god I need to go to sleep. How did I not know that?
-
[ot]It's been awhile since I've asked a question in this board. Just goes to show you that you just can't know it all.[/ot] So I was digging through some code when I came across the What is it's purpose. I want to say it's a reverse assignment operator but that just make entirely no sense. Just for the clueless ones reading I'll elaborate with code $someArray = array ( 'keyOne' => "the value", 'keyTwo' => "the value" ); or this foreach ($array as $key=> $value ) while ($key $blah -= $key; $str.= $value; }
-
exactly! SELECT name FROM users INNER JOIN groups ON users.group = group.id
-
Well your first step is done... having a list of your users in a users table. Your next step is to have a groups table....having a list of all of your groups. The last step (which is really a part of the first step) is to put a column within the users table to signify which group a particular user is in. You would use the group's primary key for the value. So. if in your groups table.. the 3rd group was "Da Bears" and in the users table you must have "Joe" in that group. You would give Joe's group column a value of 3.. Get it? it's like number matching
-
I hate turkey. My family rarely ever eats turkey for thanksgiving. I love the smell of a freshly baked/roasted turkey but it's just so damned dry no matter what you do. Unless of course you drench it in gravy and if that's the only thing to make it "good" then I might as well just be drinking gravy. Chicken always seems to be on the menu for dinner for my family.. no matter what the holiday. Even if it's not a holiday. Don't get me wrong though.. I don't eat chicken 24/7.. that would just be sickening, but I do eat enough of it to not be excited when there's an oven roasted (or Ingles roasted) chicken on the table for supper. One thanksgiving we cooked a duck, which was pretty much like eating a chicken. If it were up to me what we ate for Thanksgiving I'd say pot roast. A well cooked pot roast with loads of taters and other wholesome vegetables cooked with it. MMmmmmm.. Happy Thanksgiving people!
-
Welcome back nethnet.. I remember seeing your name all around back in the day when I first arrived here. Glad to see this place has gone unforgotten to most.
-
What do you think of the new look of these forums?
Zane replied to smerny's topic in PHPFreaks.com Website Feedback
I don't know why I didn't think of that. I'm still trying to package it up... I hate this CDATA BS. I can never get it to ... find, though it says all the tests are successful :click: -
What do you think of the new look of these forums?
Zane replied to smerny's topic in PHPFreaks.com Website Feedback
Yes indeed!... [ot]In fact I also figured out how to send a copy of it to the modlog, but I really doubt that'll come in handy whatsoever.[/ot] -
What do you think of the new look of these forums?
Zane replied to smerny's topic in PHPFreaks.com Website Feedback
I've been messin around with it awhile... for too long actually. Here's my progress. Really, the ONLY thing left to do now is compile it into a mod/package which will be the most PITA (considering how well SMF really updated everything.) [attachment deleted by admin] -
Now if we only had one for spam too. Just like editing in code tags for someone.. BAM SPAM! .span { color: white: background:url('spam.png'); }
-
What do you think of the new look of these forums?
Zane replied to smerny's topic in PHPFreaks.com Website Feedback
Nice job, but you only did it for the board view. You forgot the unread and unreadreplies files as well. Just another SMF annoyance I found out when doing the highlighting for the solved posts. You should keep record off what you just did so we can all work collaboratively on a PHPFreaks SMF Mod, instead of repetitively installing 10+ mods per upgrade. Maybe use the work with trac on it. -
What do you think of the new look of these forums?
Zane replied to smerny's topic in PHPFreaks.com Website Feedback
I wonder what a quote inside of a quote looks like right about now Yeah that's a general problem. I remember making it larger every single time we've upgraded. Edit: Made it larger now (clear cache). Better? EDIT: Is it just me or is JUST this board in particular not adhering to the new theme. -
Using your example it would look like this Table 1: id, name, age, pet Table 2: id, pet Then you would do SELECT b.pet FROM table1 AS a INNER JOIN table2 as b ON a.pet = b.id WHERE a.age = 18
-
lol im so seriously like what can somebody so like translate that? O
-
That's the way it's supposed to be. Otherwise you would have to update the ids/links/html/etc for all of your products every time you deleted one. Products are put into a database with a primary key so that they have just that. A PRIMARY KEY. One number in particular that identifies it for as long as it is in the database. True, once you delete id's you maybe have endless phantom numbers out there, but hey.. it's like having a spare tire or something. You can always query a database of any size to find the missing numbers.. It won't hurt the integrity of your database whatsoever.. at least I wouldn't think it would.
-
On SELECT statements the only reason mysql_query would return FALSE is if you didn't have permission on the table EDIT: not having permission on a table can also be the same as a table not existing at all. (This may mean you have mispelled a tablename) This is why you should use the mysql debugging function provided to you to catch such things. Example $getcursor = mysql_query("SELECT * FROM butsags_cursors WHERE id=".$cursor."") or die(mysql_error()); // $showcursor = mysql_fetch_array($getcursor);