Jump to content

summerpewp

Members
  • Posts

    58
  • Joined

  • Last visited

    Never

Everything posted by summerpewp

  1. I have a statement $account = $_SESSION['account_id']; $postedby = $account_id; /*both echo out to the same number*/ if($account == $postedby){ echo "DELETE BUTTON"; } i echo'ed out both $account and $postedby and both return 1 but the if statement fails to read as true. HELP!!! thanks in advance!
  2. I have text boxes where I edit information, and from that information it updates a preview window onChange. There are ~ 40 fields that do this. So What I wanted was a form that would show every possible text field, when its edited, in the "preview window" it will show the information. I've tried many sites with explanations of javascript that do it, but either they dont work correctly for some reason, or it doesn't exactly do what I want. If someone could point me in the right direction It would greatly help. For instance: NAMESUMMER AGE PHONE888.333.3333 Would display upon change (not refreshing the page) in the preview window as: NAMESUMMER PHONE888.333.3333
  3. Bumping this, to see if anyone else or new people who have not viewed this topic knows a solution to this. I am looking for, preferably, a algorithm for the tournament brackets (double elimination) style.
  4. let me know if u find a solution to my problem...
  5. just curious if anyone was thought about this in any form ?
  6. yeah this debate isn't about which standard is used... my question stands present... the link of the tournament system i posted for the software seems to work well, only tested up to 8 players.. since i'm not buying it. so it can be done in a programming language, so it should be cable in php... just a matter of finding someone with the capabilities... still open to some math for this matter
  7. yeah, just 2 different versions, thats not the debate of this topic The main reason I am posting is to know if there is a way or any one know of a source of this that can be easily reviewed to program a working auto-generating bracket system for double elimination. It seems to be a complex code for every programmer i have managed to get my hands on to do this project. They all stop when it comes to this part because its over their heads. Now these programmers are good and can code fairly well, but can't wrap their heads around this part not sure what the problem is...
  8. in a normal double elimination, that i'm aware of... you have to lose 2 times before you are eliminated from the tournament. If you lose the first game just because you aren't warmed up or what ever, you still have a chance to prove yourself. If you end up making it to the winner of the losers bracket, you face the winner of the winners bracket. If the losers bracket wins there is another face off since it is double elimination the person in the winners bracket has a chance to prove himself one more time. If he loses again, the obvious winner should be the person who just started off weak. You can not issue all the byes in the winners bracket accurately enough to do double elimination, because those who are not on a bye still have to play... and that means there is going to make the losers bracket uneven.
  9. that being said, are there any other programs out there that do this? I haven't found any myself... I lied... http://www.northbyte.com/index.php?lang=eng&page=tourneymaster seems to do it... but i haven't been able to find an open source one
  10. now factor in a bye for the losers bracket.... that is where i get lost... i can manually draw them no problem and run these tournaments, but the coding behind this mechanic is what is the issue.
  11. that example shown there is not for double elimination ... that is simple a ranking system to show the 1st, 2nd, 3rd, 4th places in a single elimination tournament. This i am not having a problem with... Double elimination, where each player has to lose 2 times to be kicked out...
  12. After a year of searching for a programmer capable of doing this and all of them not finding a solution I posted here in the hopes that someone here knows a solution or could help figure out the problem everyone was running into.
  13. well another factor into the losers bracket is it doesn't look anything like the winners bracket. the top half looks standard ... 1 winner 1 loser that that winner plays another winner.... but when you get to the losers half 1 loser plays 1 loser, 1 is eliminated. That loser moves foward, and plays another loser, not the one that wins the next match.. but instead the next loser in the winners bracket. It gets VERY complicated at this point.... now factor in the bye's, and game is over! heh, thats where it gets insanely complex and hard to manage with code.
  14. Yeah you have a general understanding. It is only complicated when you start issueing the bye's (people who sit out due to not having anyone to play, which is also used to re-balance the brackets) For example, with 5 players, it would look like this: Team 1 -- Team 1 -- Team 2 -- Team 3 Team 3 -- Team 4 -- Team 3 -- Team 4 -- Team 5 -- Now this seems easy and is very easily done in single elimination. But when you move to double elimination it gets more complicated. I have the single elimination done, but once it gets to double elimination , thats where it all goes crazy.
  15. Bump, just curious if there is any mathematical formulas for this? That would give me a large step forward!
  16. I personally am not qualified to program this. I do not have enough experience with php. The programmers I have all ran into the same problem with the pairing of the losers bracket on the number of players not being a factor of 2 (which makes a perfect bracket) 2, 4, 8, 16, 32, 64, etc.
  17. Is making a double elimination tournament style bracket system capable of being done in php? After dealing with numerous very well qualified programmers to only turn down the project due to difficulty or lack of a solution I am curious if anyone has figured this out. I have run across a few sites that have some programs but all turn up to have some issues with the pairing of teams. Please let me know! If you know the solution, we can work something out as far as payment. This is not a looking for work post, but merely a "can it be done" and if so and you are willing to share the info, it would be greatly helpful.
  18. well , I'm making a small game for a school project. Where there will be random people in these zones to interact with etc. So It will need to be navigated on . That part I understand and can manage. The hard part is the random zones.
  19. Trying to create a generator for a game I'm making. It requires a random map to be generated but I can't seem to find any open source code to work with. Since I am sort of new to programming this is a little over my head. Curious if there is an open source php file I can edit / learn from...? Any help would be greatly appreciated.
  20. in the table zones : zone_id zone_b_x zone_b_y everything in zone_id right now is set to 1 since I am just trying to get this to function in zone_b_x i have numerous values, but just want to compare it to the current $newx so, if i have data such as this: id, x, y 1, 5, 5 1, 5, 8 1, 5, 10 1, 6, 5 1, 9, 4 etc. I want it to look at zone_id 1, zone_b_x 5 and zone_b_y hold the values of 5 8 and 10 so i can compare them in the if statement.
  21. <?php ... $newx = $row['player_loc_x']-1; $y = $row['player_loc_y']; $border = mysql_query("SELECT * FROM zones WHERE zone_id = '1' AND zone_b_x = '$newx'"); $row2 = mysql_fetch_array($border); $zoneby = $row2['zone_b_y']; if ( $newx == $zonebx && $y == $zoneby) { "do this" } else { "do this instead" }; ... ?> This only seems to return 1 value that is in my database. when i Echo $zoneby. I need it to hold all info that is relevant for validation in my if statement. Any ideas? I'm sure its something easy that I'm over looking. Here is an example of what I'm trying to do. 1. Retrieve all the data related to zone_b_x and zone_id 2. In this case its 5, 8, 10 But when I echo it, it only holds the value of 5 and doesn't look at 8 or 10 for the statement.
  22. I'm trying to do php and query some information. But it seems that i'm running into an issue. Here is my code: <?php include('db.php'); $location = mysql_query("SELECT * FROM player"); $row = mysql_fetch_array($location); $newx = $row['player_loc_x']-1; $y = $row['player_loc_y']; $z = 1; $border = mysql_query("SELECT * FROM zones WHERE zone_id = '1' && zone_b_x = '$newx'"); $row2 = mysql_fetch_array($border); $zonebx = $row2['zone_b_x']; $zoneby = $row2['zone_b_y']; if ( $newx == $zonebx && $y = $zoneby ) { $_SESSION['$errormsg'] = 1; header("Location: ../index.php"); } else { $_SESSION['$errormsg'] = 0; mysql_query("UPDATE player SET player_loc_x = '$newx' WHERE player_id= '1'"); header("Location: ../index.php"); }; ?> What i'm trying to do is fetch some information from Mysql that meets both requirements in the IF statement. I have many that meet the first criteria but not the second. If it meets both then it proceeds, otherwise it fails. Right now, its reading it wrong . For instance, in my database i have stored: 16, 8 16, 9 16, 10 it only responds to 16, 8 and doesn't recognize that 16,9 and 16,10 are still needing a check. I'm not sure if i am unclear on what I'm trying to describe so please ask any more questions if need be. I know the code is probably not up to standards, but i'm just learning php / mysql now so forgive the noob code.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.