You are here: simple query question « PHP SQL « IT news, forums, messages
simple query question

Posted by Tony Peardon on 09/02/07 06:23

Hi all,
I've got a php function which asks mysql the following question...

"select * from data where id='$id' and parent='$parent' and node='$node'"

Now, I don't need to "select *", because the function is simply supposed
to return true if the data exists in the database, so how do I get the
query to return true if the data exists, and false if it doesn't.

Thanks,

Tony.

 

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

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