Tell me, please, where is the error here:

mysql_query("INSERT INTO `startpoke` (img,name_poke,life,atk,def,exp,type) VALUES('$row['img']','$row['name_poke']','$row['life']','$row['atk']','$row['def']','$row['exp']','$row['type']') ") or die(mysql_error()); 

I get this error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\style\register.php on line 50

    1 answer 1

    In values, you have a single quotation mark before the variable name and it also closes before the name of the array key. Those. should be wrong:

     '$row['name_poke']' 

    And so:

     '".$row['name_poke']."' 

    And so with each variable in values