return row = 1

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pido
Forum Commoner
Posts: 35
Joined: Mon Jan 12, 2004 8:03 am

return row = 1

Post by pido »

hi..
i have bunch of records in my database, and i wana display it in my webpage using php, question is:

How can i make the code for PHP for:

Code: Select all

IF (query return row = 1) {
   doThisAction;
}
ELSE (query return many row) {
   doThisAction;
}
is there any one know how can make the PHP code with that condition??
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post by AVATAr »

Shendemiar
Forum Contributor
Posts: 404
Joined: Thu Jan 08, 2004 8:28 am

Post by Shendemiar »

== is for comparison
= is for replacing values
User avatar
pido
Forum Commoner
Posts: 35
Joined: Mon Jan 12, 2004 8:03 am

Post by pido »

thnx.. :D
Post Reply