By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,738 Members | 1,870 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,738 IT Pros & Developers. It's quick & easy.

mysql result display

P: n/a
Hi,

How can i display the result of query result as a string separated by comma?

thanks and regards,

Jorn
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <e9**************************@posting.google.com >,
jo****@yahoo.com (jo****@yahoo.com) wrote:
How can i display the result of query result as a string separated by comma?


Like this, for example:

$mysql_result = mysql_query($query);
$array = mysql_fetch_array($mysql_result);
echo join(', ', $array);

JP

--
Sorry, <de*****@cauce.org> is een "spam trap".
E-mail adres is <jpk"at"akamail.com>, waarbij "at" = @.
Jul 17 '05 #2

P: n/a
I have a textarea that accept user input for products and its price.
product and price are seperated by a space and products are seperated
by newline. How can i extract these information to insert into the
database?

thanks and regards

Jorn
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.