473,386 Members | 1,741 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Conversion of object to array

65
Hi friends,

I'm retrieving a field from a database which contains comma separated values.
I'm using 'get_records_sql("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_array' 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...
Apr 8 '08 #1
1 1437
ronverdonk
4,258 Expert 4TB
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
Apr 9 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jim Hubbard | last post by:
I have some C# code that is supposed to wrap the defrag APIs and I am trying to convert it to VB.Net (2003). But, I keep having problems. The C# code is relatively short, so I'll post it...
1
by: William Starr Moake | last post by:
This is for a browser-based WYSIWYG editor to convert image file paths from absolute to relative when the page under construction is saved. From inside the save function I get error message:...
2
by: | last post by:
Hi there, I use a Custom OPC interface. Aftre reading multiple data I get an object which includes an array. But in design time this is only declared as object (OPC definition, can not change...
2
by: Sankar Nemani | last post by:
Why does the following code throw an exception? object o = new object{"sankar", "sankar2"}; string s; s =(string)o; The C# language spec says something different on MSDN: For any two...
9
by: Codemonkey | last post by:
Hi, Sorry for a stupid question, but is it possible to do a narrowing conversion with an object array with Option Strict On in VB? E.g: ------------------ Dim aBase as Base() = {New...
4
by: Petro | last post by:
Good morning The following code generates the exception: "Option Strict On disallows implicit conversion from System.Array to 1-dimensional array of 'String'. I've been unable to find the...
2
by: sunshine | last post by:
I'm having trouble converting this FOR loop from VB.NET to C#: Here's the VB.NET code: Dim localCart As Object localCart = Session("cart") For i = 0 To UBound(localCart, 2) If...
11
by: jyck91 | last post by:
// Base Conversion // Aim: This program is to convert an inputted number // from base M into base N. Display the converted // number in base N. #include <stdio.h> #include <stdlib.h>...
6
by: Michael Bray | last post by:
I'm trying to figure out what is the easiest way in C# 2.0 to convert an object array (object, int, anything) to a string array (string or List<string>) in one line of code. At first I thought I...
1
by: perroe | last post by:
Hi I have a array of complex numbers that are stored in a simple double array. This is done since the array is part of an wrapper for an external C library, and the imaginary part of the first...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.