Drongo_III Posted March 2, 2012 Share Posted March 2, 2012 Hi Guys Clearly I still have lots to learn... I am trying to insert (using mysqli) multi-dimensional array values into the database, but when i do the value that gets stored ends up as "$Array". Here's the test query i am running: $sql = "INSERT INTO teams (company) VALUES ('$myarray')"; $mysqli->query($sql); So do i need to break the data out of the multidimensional array for the insert? Or is there some syntax thing i've missed? Or worse still do i actually need to do: $value1 = $myarray; Any help would be very much appreciated! Drongo Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.