[nycphp-talk] Mysql query result for php
jon baer
jonbaer at jonbaer.net
Wed Mar 31 06:13:40 EST 2004
if you just need the values of the array for your class use array_values() like:
$names = array_values($text_array);
http://us2.php.net/manual/en/function.array-values.php
hth,
- jon
----- Original Message -----
From: Ovidiu
To: talk at lists.nyphp.org
Sent: Wednesday, March 31, 2004 3:57 AM
Subject: [nycphp-talk] Mysql query result for php
Hello.
I'm using a graph class to generate stats. This class requires one var named $names witch must be $names=("name1","name2","name3",...) ( from class example).
I need to construct some graph with data retrieved from a mysql database.
Any ideea how to output a mysql query result into that format ?
When I print_r $names i see something like that : Array ( [0] => text1 [1] => text2 [2] => test3 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20040331/3dd73a11/attachment.html>
More information about the talk
mailing list