Search results

  1. garrensilverwing

    scary code to debug

    i wrote this code with some of your help (thanks very, very much!) and i need a bit of help with it, when i enter in any amount of PGN's it works perfectly with one exception, it duplicates the extra game at the end every time which gives me one extra MySQL query which can screw up the entire...
  2. garrensilverwing

    extracting from a string

    ok so what it is doing is capturing arrays of the text and not the actual text right away so i need to do is scan the arrays for arrays containing what i need hmm sounds complicated lol Edit: $string = $_POST['pgn']; $string = strtolower($string); $string = stripslashes($string); echo...
  3. garrensilverwing

    extracting from a string

    so probably the best thing to do is to just use regular expressions i guess i will start working on them lol Edit: i dont know what i am doing wrong, i wanted to write a simpler piece of code to show me what i am grabbing with my regular expression but all i get is 0: Array 1: Array 2: Array...
  4. garrensilverwing

    extracting from a string

    well lets say for example i write a non web related program to create a seperate MySQL compatible file is there a way i can just upload that as a table in my database? and if so what format should i use?
  5. garrensilverwing

    extracting from a string

    well i have an older version of chessbase and it doesnt look like it has the ability to output anything other than PGN or TXT neither of which are helpful to me, maybe if i could install chessbase onto the webserver then i could do something but i doubt that is possible
  6. garrensilverwing

    extracting from a string

    i'll see if i can explain it without sounding crazy or stupid :D right now, in order to display the games on my site, i use javascript code generated by chessbase which uses iframes to separate the list of games and the chessboard from the actual game itself...
  7. garrensilverwing

    extracting from a string

    well i will want to learn them eventually so i will just buckle down and figure them out i just want to know about the file thing or if i will have to do each pgn manually
  8. garrensilverwing

    extracting from a string

    well i want to have them separated for ease of searching but its not necessary, a majority of the games will have usernames from games played online which means there wont be a first/last name and i get the games from my friend and i told him to make sure they are in that particular format (the...
  9. garrensilverwing

    extracting from a string

    ok so if i have a file of say 500 pgn's and i want to write a code to extract certain information from it i can use the regular expressions to do that but how would i keep it from extracting it from all of them at the same time rather than keeping them separate?
  10. garrensilverwing

    extracting from a string

    well im not too worried about length of code right now because sometimes you have to do things the hard way first and im doing everything else the hard way and then converting it when i get it working which is probably an ass backwards way of doing it but i am learning so much
  11. garrensilverwing

    extracting from a string

    i was hoping to do it in php so i dont have to fiddle with any more types of code lol
  12. garrensilverwing

    extracting from a string

    to try and speed up the process of adding chess games to my website i would like a piece of code that will search a large string for certain bits of information, so instead of hand typing them into the database every time i could just enter the string and it will do the job for me. here is an...
  13. garrensilverwing

    multiple queries

    I think first what i am going to do is redo the /games directory since it is a mess and then I am going to redo the coding and put all the games under one single directory so when they pull up the search i can list it like it is listed in the other games, i know that probably doesnt make sense...
  14. garrensilverwing

    multiple queries

    this is some complicated stuff haha
  15. garrensilverwing

    multiple queries

    This is the code for the javascript chessboard: <HTML> <HEAD> <META name="GENERATOR" content="ChessBase HTML Publisher 3.0"> <SCRIPT type="text/javascript" language="JavaScript" src="gamesj0.js"></SCRIPT> <SCRIPT type="text/javascript" language="JavaScript" src="gamesj0c.js"></SCRIPT> <STYLE...
  16. garrensilverwing

    multiple queries

    *warning long post with lots of code* ok i got the search feature to work somewhat like i want it to and now I have it inset into the frames final product here http://www.brianwallchess.x10hosting.com/games/search but now I have a new problem which i believe stems from the javascript. When you...
  17. garrensilverwing

    multiple queries

    <?php require ('../../../../dbgames_connect.php'); $min=600; foreach (str_split('GFEDCBAXM') as $class) { $classmin['$class'] = $min; $classmax['$class'] = $min+199; $min+=200; } $classmin['Z']="600"; $classmax['Z']="3000"; if (!$_POST['search']) { ?> <html> <form method="post"...
  18. garrensilverwing

    DIV Problems with Internet Explorer - Please Help

    for one of my pages i had to add text-align: center; to my body css and then text-align: left; to all the css for the divs which centered the wrapper but kept everything else right, and if you want something centered inside the wrapper you just dont put text-align: left; for that particular div...
  19. garrensilverwing

    multiple queries

    there is probably an easier way to do this but what I want to do is, when people search for multiple things it to display results that match everything that they put in this is the code I have so far, there is a lack of tutorials online so everything is just me trying to figure out for the whole...
  20. garrensilverwing

    adding data to a database

    yup thanks, i found that out after looking back at it an hour later or so :D
Top