Re: [PHP-DB] mysql_numrows

2008-10-12 Thread Chris
Ron Piggott wrote: When I do the following command: $number_of_entries=mysql_numrows($blog_activity_result); and there are no rows I get an error (Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in ...) Fix the error from $blog_activity_result as someone else

İlgi: [PHP-DB] mysql_numrows

2008-10-12 Thread sahabettin akca
query in error $blog_activity_result , $number_of_entries=mysql_numrows($blog_activity_result); this line before echo mysql_error(); add , you see error . after edit your error :)) 2008/10/12, Roberto Carlos García Luís <[EMAIL PROTECTED]>: > You can use, [EMAIL PROTECTED]($blog_activity_result);

Re: [PHP-DB] mysql_numrows

2008-10-12 Thread Roberto Carlos García Luís
You can use, [EMAIL PROTECTED]($blog_activity_result); with @ you silence the error in the display. Robert C. El 12/10/2008, a las 01:19 p.m., Ron Piggott escribió: When I do the following command: $number_of_entries=mysql_numrows($blog_activity_result); and there are no rows I get an erro

[PHP-DB] mysql_numrows

2008-10-12 Thread Ron Piggott
When I do the following command: $number_of_entries=mysql_numrows($blog_activity_result); and there are no rows I get an error (Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in ...) When that happens I want to display a greeting to invite the user to engage in

Re: [PHP-DB] load page in another frame

2008-10-12 Thread Bastien Koert
On Sun, Oct 12, 2008 at 6:10 AM, Velen <[EMAIL PROTECTED]> wrote: > Hi > > I have 3 frames on my index page using frameset. I want to display another > content in the other frames when a user has logged in successfully. > > My code is like that: > > ## if user exists and have corresponding passwo

[PHP-DB] load page in another frame

2008-10-12 Thread Velen
Hi I have 3 frames on my index page using frameset. I want to display another content in the other frames when a user has logged in successfully. My code is like that: ## if user exists and have corresponding password mysql_num_rows >0 if(mysql_num_rows($res) != 0) { x code to dis