code_junkie

Insert array into database in a single row

Nov 11th, 2011
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. ID TITLE
  2. 1 Array("english title", "nederlandse titel");
  3.  
  4. $title = serialize($array);
  5.  
  6. $title = unserialize($mysql_data);
  7.  
  8. $title = base64_encode(serialize($array) );
  9. $title = unserialize(base64_decode($mysql_data) );
Add Comment
Please, Sign In to add comment