Page 1 of 1

return row = 1

Posted: Thu Dec 09, 2004 9:15 am
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??

Posted: Thu Dec 09, 2004 10:11 am
by AVATAr

Posted: Thu Dec 09, 2004 10:16 am
by Shendemiar
== is for comparison
= is for replacing values

Posted: Thu Dec 09, 2004 10:23 am
by pido
thnx.. :D