php push 2d array into mysql
        Posted  
        
            by john
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by john
        
        
        
        Published on 2010-04-24T15:39:49Z
        Indexed on 
            2010/04/24
            15:43 UTC
        
        
        Read the original article
        Hit count: 328
        
Hay All, I cant seem to get my head around this dispite the number to examples i read. Basically I have a 2d array and want to insert it into MySQL. The array contains a few strings.
I cant get the following to work...
$value = addslashes(serialize($temp3));//temp3 is my 2d array, do i need to use keys? (i am not at the moment)
$query = "INSERT INTO table sip (id,keyword,data,flags) VALUES(\"$value\")"; 
mysql_query($query) or die("Failed Query");
Thanks Guys,
© Stack Overflow or respective owner