You are here: Re: Assignin rooms to student « PHP Programming Language « IT news, forums, messages
Re: Assignin rooms to student

Posted by Ravi on 05/25/07 04:46

On May 24, 6:24 pm, Miss...@gmail.com wrote:
> Ravi :> Hi,
> > Before alloting a room check the rooms like
>
> > select count(roomid) from maproomstudent mp ,rooms where
> > room.roomid=mp.roomid
>
> > after this check if count >=2 don't allot otherwise allot it
>
> -------------------------------------------------------------------------
> hey, thanks but how can i write this statement in php?
>
> after this check if count >=2 don't allot otherwise allot it
> ??
>
> :s sorry for bothering
>
> waiting for ur reply







$sql ="select count(roomid) from maproomstudent mp ,rooms where
room.roomid=mp.roomid";
$result = mysql_query($sql);
$row = mysql_fetch_row($result);

 

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

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