Jump to content

spikeon

Members
  • Posts

    123
  • Joined

  • Last visited

    Never

Everything posted by spikeon

  1. I am writing a code that will read a public database to gather information i have hit a snag where there can be more than one result for a specific type The Result could be: <tr><td class="TextResultsRowHeader">Set/Rarity:</td><td class="TextResultsRowValue">Morningtide Common</td></tr> Or: <tr><td class="TextResultsRowHeader">Set/Rarity:</td><td class="TextResultsRowValue">Morningtide Common, Ninth Edition Common, Onslaught Common</td></tr> Or many other variations, with up to 7 different sets and raritys. i want to seperate all of the sets from this list here is my regex: ereg(".*<tr><td class..TextResultsRowHeader.>Set/Rarity:</td><td class..TextResultsRowValue.>([a-zA-Z ]{1,30}) [a-zA-Z]{1,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}</td></tr>.*",$str, $matches); however, it dosen't seem to work. Help Please!!!
  2. I am writing a code that will read a public database to gather information i have hit a snag where there can be more than one result for a specific type The Result could be: <tr><td class="TextResultsRowHeader">Set/Rarity:</td><td class="TextResultsRowValue">Morningtide Common</td></tr> Or: <tr><td class="TextResultsRowHeader">Set/Rarity:</td><td class="TextResultsRowValue">Morningtide Common, Ninth Edition Common, Onslaught Common</td></tr> Or many other variations, with up to 7 different sets and raritys. i want to seperate all of the sets from this list here is my regex: ereg(".*<tr><td class..TextResultsRowHeader.>Set/Rarity:</td><td class..TextResultsRowValue.>([a-zA-Z ]{1,30}) [a-zA-Z]{1,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}[,]{0,1}([a-zA-Z ]{0,30}) [a-zA-Z]{0,10}</td></tr>.*",$str, $matches); however, it dosen't seem to work. Help Please!!!
  3. well, now that i know that html still exists, and wasn't REPLACED by xhtml, i changed the site to fix, and at least the front page validates the rest of them don't because i use coded-in GET commands, and since it has a & in it, it thinks its gotta be a that it can't recognise....
  4. ok, well, that should be fixed, at least for edit site. do you know of a way to turn off register_globals? because i had variable $id, and $_SESSION[id] and when i set variable $id it changed $_SESSION[id]
  5. please try to USE the form to edit a site before telling me that you can do something. sure you can see the form, but will it SUBMIT?
  6. how are you doing so? just leaving the password feild blank won't work, theres nothing in my mysql like a duplicate username, where did you get my password?
  7. well, the thing is that i'd post a site here, and then people would validate it, and get 500 errors because it presumes its XHTML
  8. i fixed it so that the cookie also check passwords
  9. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-type" content="text/html;charset=UTF-8"> noone informed me of that...ever...
  10. look, link me to a HTML validator, and i'll use it, i haven't found one XHTML validators plain old piss me off, because i code,. HTML
  11. no... your signed in as me... i'm not entirely sure how that happened...
  12. i fixed the login / register errors i use phpthumb for resizing only, so full path disclosure is fine by me upload.php took forever for test.com to load, try a site that you know better, like phpfreaks, or something.
  13. lol, cuz the last guy registered with one.
  14. i'm sorry that i don't want to put all of my h2's inside of obj tags which is what the validator tells me to do
  15. For me and my Coder Krew tell me if this looks ok http://www.spikeoninc.com/index.php
  16. blend... not what i meant. how about... not have rough, poorly lassooed edges which is what i fixed
  17. www.webcriticz.com/hosted/title.jpg your welcome
  18. hmmm, well, it appears that its trying to add a seperate header and stuff to it... but i donno... somone else will help ya, i think this is a little above my head at this time at night
  19. make sure you save a backup of the site FIRST, just in case that makes it blow up
  20. try this find / replace: echo with $page_content .= then put the code where it works and then where you want it to putput, put <?php echo $page_content; ?>
  21. you need to blend shari into the background. also... "Shari sold it, let me show you why." that means is your going to point out the flaws in her house as to why she sold the house shouldn't it be "Shari sold it, let me show you how." which will show you HOW shari sold the house, which i think is MUCH more profatable. :3
  22. As i'm sure its nice to only have your own work in a tutorials section, wouldn't it be alot more usefull if users with say, 50 posts, could post tutorials as well? i mean, honestly, i grow tired of going into php help and seeing the same question over and over again, and if i could i'd write a tutorial, and i wanted to do that the second i saw the tutorials board was added. and, that aside, why entirely read only? why not let people post comments so that they can point out bugs or ask questions? thats my $0.02
  23. assuming theres no java in the site, that crashes the program... and causes the thumb to be replaced with a generic image.
×
×
  • 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.