There are two ways of doing IF statements in MySQL queries: http://dev.mysql.com/doc/refman/5.0/en/control-flow-functions.html
http://dev.mysql.com/doc/refman/5.0/en/if-statement.html James Keeline --- anuksimon <[EMAIL PROTECTED]> wrote: > hi all, > can i write a query like in mysql using select query > > if(Emp_id = 67) > > Emp_Id = 55; > > else > > Emp_Id = Emp_Id > > > > Community email addresses: > Post message: [email protected] > Subscribe: [EMAIL PROTECTED] > Unsubscribe: [EMAIL PROTECTED] > List owner: [EMAIL PROTECTED] > > Shortcut URL to this page: > http://groups.yahoo.com/group/php-list > Yahoo! Groups Links > > > >
