Conversion of object to array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yasmine
    New Member
    • Feb 2008
    • 64

    Conversion of object to array

    Hi friends,

    I'm retrieving a field from a database which contains comma separated values.
    I'm using 'get_records_sq l("select query")' for this and it returns my expected output.
    My problem is it return values as standard class object. But i need it as in array format.

    If i'm using 'mysql_fetch_ar ray' or 'mysql_query', it returns only one row.

    Can anybody tell me what i have to do to convert these object values into the array values?

    Thanx n Regards
    Yas...
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    This is the n-h question about converting a string into an array. You should know this by now, seeing all the replies that our members have given you (without any acknowledgement from you that you had used that reply!!)

    So, for the last time, I will point you to the answer already given to you in http://bytes.com/forum/post3143192-2.html

    If you still don't get it, please follow some PHP and/or MySQL tutorials first before getting your tutotial via this forum.

    We are always willing to help a programmer, but you must acquire some basic theoretical background on programming yourself!

    Ronald

    Comment

    Working...