<input name='startpoke' type='radio' value='1' class='checkbox' onChange="fcheck('rules')" ><b>#001 Bulbasaur</b> - Травяной Ядовитый<br><img src=img/pkmn/normal/001.jpg width=250 height=190 border=1> <input name='startpoke' type='radio' value='4' class='checkbox' onChange="fcheck('rules')" ><b>#004 Charmander</b> - Огненный <br><img src=img/pkmn/normal/004.jpg width=250 height=190 border=1> <input name='startpoke' type='radio' value='7' class='checkbox' onChange="fcheck('rules')" ><b>#007 Squirtle</b> - Водный <br><img src=img/pkmn/normal/007.jpg width=250 height=190 border=1> <input name='startpoke' type='radio' value='152' class='checkbox' onChange="fcheck('rules')" ><b>#152 Chikorita</b> - Травяной <br><img src=img/pkmn/normal/152.jpg width=250 height=190 border=1> <input name='startpoke' type='radio' value='155' class='checkbox' onChange="fcheck('rules')" ><b>#155 Cyndaquil</b> - Огненный <br><img src=img/pkmn/normal/155.jpg width=250 height=190 border=1> <input name='startpoke' type='radio' value='158' class='checkbox' onChange="fcheck('rules')" ><b>#158 Totodile</b> - Водный <br><img src=img/pkmn/normal/158.jpg width=250 height=190 border=1> <input name='startpoke' type='radio' value='252' class='checkbox' onChange="fcheck('rules')" ><b>#252 Treecko</b> - Травяной <br><img src=img/pkmn/normal/252.jpg width=250 height=190 border=1> <input name='startpoke' type='radio' value='255' class='checkbox' onChange="fcheck('rules')" ><b>#255 Torchic</b> - Огненный <br><img src=img/pkmn/normal/255.jpg width=250 height=190 border=1> <input name='startpoke' type='radio' value='258' class='checkbox' onChange="fcheck('rules')" ><b>#258 Mudkip</b> - Водный <br><img src=img/pkmn/normal/258.jpg width=250 height=190 border=1> Суть вопроса в названии! 

Closed due to the fact that Sergey , Timofei Bondarev , Yura Ivanov , etki , Mirdin 6 May '15 at 6:21 am off topic .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "Questions asking for help with debugging (" why does this code not work? ") Should include the desired behavior , a specific problem or error, and the minimum code for playing it right in the question . Questions without an explicit description of the problem are useless for other visitors. See How to create minimal, complete, repeatable example . " - Sergey, Timofei Bondarev, etki
If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    Pull out the name of the hero regexp'ом type regexp'ом ( <b>.*</b> ), remove the first 5 characters and put it in the database. The rest of the data is parsed the same way.

    In general, of course, for parsing html code with regular expressions, you need to take your hands off, but I think in this case it is acceptable.

    I am afraid that it will be difficult to answer this question in more detail.

    • You try it =) I am not very strong in this, and now I ask you to explain it =) - k0mar
    • @Prikol Well, I’m not going to try exactly, but if you write what exactly for each character you would like to write to the database, and what you didn’t work out , then maybe I can help. - Costantino Rupert
    • See: In the database of life, attack, etc. for the pokemon is displayed immediately, then I need to enter only the name of the pokemon and his picture (link)! This is what I can't do. I do this: mysql_query ("INSERT INTO users (name, password, email, date, ip) values ​​('$ name', '$ password', '$ email', '$ date', '$ ip') ") or die (mysql_error ()); // Log the user mysql_query (" INSERT INTO startpoke (name_poke) values ​​('$ name_poke') ") or die (mysql_error ()); // create player pokemon mysql_query ("INSERT INTO inventar () values ​​()") or die (mysql_error ()); // create player inventory - k0mar
    • And enter the name and image (link), you need to enter the Pokemon of which the user selected. what variables are needed, etc. to use? Please tell me =) - k0mar
    • @Prikol So, well, [ first. ] [1] [1]: lurkmore.ru/images/5/53/… - Costantino Rupert