Last active
          December 15, 2015 23:59 
        
      - 
      
- 
        Save julianwachholz/5343871 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| $SQL = "INSERT INTO `productgroups` "; | |
| $SQL .= "( "; | |
| $SQL .= "`xmlid`,"; | |
| $SQL .= "`lang`,"; | |
| $SQL .= "`title`"; | |
| $SQL .= ") "; | |
| $SQL .= "VALUES ( "; | |
| $SQL .= "'".mysql_real_escape_string($_POST['group']['xmlid'])."', "; | |
| $SQL .= "'".mysql_real_escape_string($_POST['group']['lang'])."', "; | |
| $SQL .= "'".mysql_real_escape_string($_POST['group']['title'])."'"; | |
| $SQL .= ");"; | |
| mysql_query($SQL); | |
| $group_id = mysql_insert_id(); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment