You are here: mysql question « PHP Programming Language « IT news, forums, messages
mysql question

Posted by Bob Bedford on 03/09/06 15:31

Hello there,

I know this isn't a mysql NG, but I've no access to any good mysql
newsgroup, and since most php coders also know mysql, I ask here.

I've a table in wich I store pictures of articles. I've a field where I
store the priority (let's say is the order the pictures are shown).

So I've those fields in the database: articleID, imagepath, priority.

So for article 455 I've this record:
455;455-1.jpg;1
455;455-2.jpg;2
455;455-3.jpg;3

Now some articles have missing numbers priority.
example article 24 has those records:
24;24-2.jpg;2
24;24-4.jpg;4

I've up to 5 pictures per article. How to retrieve with a query all
articlesID where I've priority 2 but not priority1 with mysql ?

Thanks for helping

 

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

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