Jump to content

serialize / unserialize working with mysql


matthewlesh

Recommended Posts

I am currently working on something where i put a serialized array into mysql database.

 

I am putting in a numbers which correspond to id nums from another table.

 

Before without allowing for multiple selections it looked something like...

 

mysql_query("SELECT rm.*, sc.* FROM menu_items as rm, pages as sc WHERE rm.section='$id' AND sc.id='$id'");

 

But now so basically i want to be able to select what menu items are used for what page without doing a wide query then looping through hundreds of records.

 

I was wondering how i would go about doing it the simplest way?

 

(By the way it has to be in a serialize format...)

 

Thanks for any help

 

Let me know if you don't get what i mean .

Link to comment
https://forums.phpfreaks.com/topic/81452-serialize-unserialize-working-with-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.