How do I decipher this?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hwdesign
Forum Newbie
Posts: 9
Joined: Fri Dec 18, 2009 4:40 am

How do I decipher this?

Post by hwdesign »

In my SQL database I have a value that looks like this:

Code: Select all

a:1:{i:0;s:1:"1";}
The number within the quotations ("1") is the value I need to retrieve, but I don't know what I need to do to get it.

A little more detail: I have a table called "albums" and a table called "galleries." The "1" indicates the ID of the gallery related to that particular album.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: How do I decipher this?

Post by John Cartwright »

Post Reply