Jump to content

vendlus

Members
  • Posts

    141
  • Joined

  • Last visited

Everything posted by vendlus

  1. I agree with Kasey. It's probably where the code is located. You must declare any cookie info before you write any HTML at all. So just check for your cookies first thing and then start the <HTML> part afterwards.
  2. You have a link to the community project so that we can look at it and see if anything strikes us?
  3. money
  4. Done.
  5. Glad to hear it. And like Raul said, keep that attitude of wanting to know why things do or don't work. It'll serve you well.
  6. Well, I dont' have much time, but here's my initial thought. Assign the variable before the header. Since the code will treat the included statement as if it is part of the original page, just set the variable right above the include instead of trying to pass it in. The code inside your header will still see it and make the change. Hopefully someone can clarify that or I can elaborate after work tonight if I can get time. - Vendlus
  7. I agree with Jack. Hunt down some websites and just read a lot. As far as what you'll need to do, I think it's fairly simply. Have each client log in with his client id and have php store that number as a session variable. Then for every search that client does, add that client id into the where part of the SQL statement. (ie "SELECT * FROM 'inventory' WHERE clientID = $clientID" )
  8. Nice. I've been wondering about that. I have a news script where the date changes if I edit the article. They are sorted by id, so it's not been a high prioroty to fix, but I'm glad to know the fix is that easy.
  9. Nice. Thumbs Up
  10. I'm attempting to move an invision board from another server to my current one. I have a copy of the tables that I dumped with phpMyAdmin and am now trying to upload them again. Just the posts table by itself is a 30MB sql file and phpMyAdmin times out when trying to transfer it into the database (using the SQL portion of phpMyAdmin to run the sql file). Is there anyway to export the table easily in several sections so that I can upload smaller portions at a time so that it doesn't time out? Or is there a better way to upload the files? *edit* found a link to mysql_tool over on Invision's board that people claim works. I'm trying it now.
  11. Most of us didn't see the need at the time to point out something so obviously incorrect. and yes, google has lost it's marbles.
  12. Yeah, that's what I thought as well. So if $var is 5, then [$var+3] will evaluate as 8. But then $var should still be 5.
  13. I've seen several database classes to use while coding in php. Does anyone here use any of them that they can recommend? Or do you guys code your own or just code everything using the standard methods php provides? Thanks.
  14. Ok, new question. Figure I'll keep it in this thread since it's similiar. Would you recommend doing the same for most any table that will have multiple (but of an unknown number) of items for a certain field (like the ingredients one)? Can you think of an exception to that? I ask because I have various tables that will have a field with multiple items in them. Unlike the recipe one though, the only real reason I would need them separated would be to control how they are output onto the page (it's just easier to control different fields than to parse the incoming string). For example, one of the game tables I have will list the quests that can be done. In the reward field there may be multiple rewards (you may get money as well as a new suit of armor or something). But the Quests table has about a dozen other fields in it besides the reward one, so I hate to repeat them all. Would it make good logic sense to pull out the reward list into another table and just link it by questID? - Vendlus
  15. Ok, I thought that was probably the best route to take, but thought I'd ask. Thanks a lot.
  16. Ok, I'm creating a bunch of interrelated tables. I'll try to simplify them greatly to just specify my question. I'm going to basically have a table of items and a table of recipes (it's more convoluted than that, but I think I can get the point across with just this). Each recipe will require at least one item (in varying quantities), but perhaps multiple items to create. So I'm looking for the best way to make my tables so that I can easily display them, but also so that I can link the ingredients back to the ingredients table. Example... Recipe table [*]recipeID (primary) [*]itemID (what is made)(forgein) [*]Ingredients (itemID of ingredient... not sure how to do this one yet to include quantity) Item Table [*]itemID (primary) [*]itemName [*]Notes Once finished, I want to have something like this.... RecipeName, Ingredient1 (quantity), Ingredient1 (quantity), Ingredient3 (quantity) Currently, with my single Ingredient field, I'm looking at parsing the results in php after I get the recipe to separate them. I don't really want to do that, but I'm not sure of a better way to do it. I could use.... Recipe table [*]recipeID (primary) [*]itemID (what is made)(forgein) [*]Ingredient (itemID of ingredient) [*]Quantiy (quanity of ingredient to use ...and then have multiple lines for each recipe (one for each different ingredient). Thoughts?
  17. Oh wow, I'm sorry. I'm never in the open discussion board, so I didn't see it. I must be more tired than I thought since I completely forgot to search for the answer before posting. Wow again, brain freeze. Thanks a lot though.
  18. Ok, I just started noticing the color key at the bottom of the forum that color codes the current users. Am I correct in assuming that this is a mod (and that it's not part of the newest update to invision that I haven't done yet)? What mod is it? I've got a forum I would love to implement this on, but I don't recall seeing it anywhere.
  19. Assuming this is not resolved by now.... Not sure exactly how it's all setup here (are you hosting this here?), but I've had times where I had to specify the php on my inline code..... <?php echo $sql ?> Also, is the code listed the exact code from the original or an exact copy of what is actually on your server? I'm asking because that error makes it look like a semi colon was left out or deleted somewhere and the parser is trying to read past the end of a statement. But I didn't see any error in the code on first glance. If Lianna hasn't fixed it all up yet, hollar and I'll help you guys look into it. *edit* I just realized that you said that the database info doesn't list. Sounds like the config file isn't being found. Are both of these files in the same folder?
  20. I find myself using that motto more and more lately.
  21. That's great. Glad to hear it works. You're most certainly welcome.
  22. I'm having a bad week, so maybe I'm just not thinking clearly.... but don't you usually get that header message when you've got some html before whatever php is trying to do? (usually it's set cookies I thought, but it might apply to sessions as well) I know you said that the code was working before, but try pulling your session info up above the html on those last two pages. ><?php session_start(); if (session_is_registered('username')){ ?> <html><head><title>Logout Page</title></head> <body bgcolor="#DEDEBA">
  23. Yeah, invision makes the user click the daylight savings time box in their options. The admins can't do it because of all the locations that don't observe daylight savings time.
  24. I'm creating a form for my site staff so that they can update the news on the site. It's currently running fine, but some of the people don't know any html at all. I've seen forms before that have buttons just like these forums so that the person can use the ibf codes to insert formatting and links and such. Do any of you know of a good example of that kind of script? I'll probably rummage through hotscripts later today, but I just figured I'd ask if anyone here knows of a good one before I start the quest to test a dozen different ones.
  25. If your upload files are in your main directory, then the first one is going to be something like >$server_path = "/home/THClogin/public_html/"; where you replace THClogin with whatever your username is (since it's the same as your main folder). You're correct in that the second one will be $url_path = "http://terminatorsoflife.com"; Like I said, these are assuming your files are in your main directory. *edit* yeah, I copied things wrong and that $url_path was in there twice.
×
×
  • Create New...