You are here: Re: finding data in an array « PHP Programming Language « IT news, forums, messages
Re: finding data in an array

Posted by Mladen Gogala on 01/15/06 03:28

On Sat, 14 Jan 2006 22:24:24 +1300, windandwaves wrote:

> What is the most efficient way to do this?

To do it with the SQL. If you want to check one particular field
in your table, you would write your SQL as

$sql="select * from some_table where
one_particular_field='PARTICULAR_VALUE'";

The main rule of writing a database application is: whatever you can
do in the database, do in the database. That's what you have the database
for: to provide some intelligence for the data retrieval. Why bother using
database when you're using it as a flat file?

--
http://www.mgogala.com

 

Navigation:

[Reply to this 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

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