Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,472
There are 1600 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

PHP serialize data case

Thread title: PHP serialize data case
Reply    
    Thread tools Search this thread Display Modes  
06-08-2010, 01:50 PM
#1
ugniesdebesys is offline ugniesdebesys
Status: I'm new around here
Join date: Jun 2010
Location:
Expertise:
Software:
 
Posts: 1
iTrader: 0 / 0%
 

ugniesdebesys is on a distinguished road

  Old  PHP serialize data case

Hi
Problem is, what to do, if users data is unknown. I mean, different fields and difefrent amount of them are needed to log some events.
I can use serialization of data, using one column as comments. May I will use it, when i dont know ,either data will be important or not for future purposes, and variable (field) amount is not clear for different users.

I heard, that some persons are using two fields in tables: ID and DATA



and data contains all serialized variables- fields. Example in PHP can be found

PHO serialize example

I am not sure am i right. I am not sure about performanve of such method

Can somebody comment?

Best regards

Reply With Quote
06-08-2010, 05:50 PM
#2
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

Do you have any questions (besides, "comments please?") about serializing your data? The subject is very broad and it wouldn't be very good to go off on a tangential discussion completely unrelated to what you're wanting help with (are you wanting help?).

Reply With Quote
Reply    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed