Reply to Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] SELECT probrem

Your name:

Reply:


Posted by Richard Davey on 01/06/05 13:23

Hello Phpu,

Thursday, January 6, 2005, 10:42:15 AM, you wrote:

P> I have an array, for ex: $products=array(1, 2, 5 , 7)
P> I want to select all products from the database that has the ids of products.
P> I use this but doesn't work:

$product_ids = implode(',', $products);
$sql = "SELECT product_name FROM accessories WHERE product_id IN ($product_ids)";

Best regards,

Richard Davey
--
http://www.launchcode.co.uk - PHP Development Services
"I am not young enough to know everything." - Oscar Wilde

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация