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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.