Page 3 of 3

Posted: Sat Jan 17, 2004 1:33 am
by apek
hello..
its open source world here...
dont be too emosional..
both of u is good...and with just a post i think thats not out of topic..
like quasedilla5 said,he's just trying to help...
its not for me only though,maybe this topic is very useful for php beginner like me...
lets end here about the OT things,watever...
cheer up!!!!

Posted: Sat Jan 17, 2004 1:39 am
by McGruff
quesadilla5: OT is off topic.

Don't worry I don't get offended easily.

Please no more discussion here unless it's helpful to the poster. As you can see both twigletmac and myself have made several posts trying to get to the root of the problem. It doesn't help to find this focus if you go off on a new tangent. A theoretical discussion of db wrappers is better in a new topic.

Your comments are welcome but maybe you could hold off for the moment - unless it's something that deals specifically with the test script.

Sorry Apek - got to take a break now but will be back later.

Re: .........

Posted: Sat Jan 17, 2004 3:05 pm
by McGruff
apek wrote:i did what u said...
i set a test value which does actually exist in the table.
i get this:

Code: Select all

affected rows = 1
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in g:\programming\phpdev\www\mmis\system\semakaduan1.php on line 55
num rows is:
If the query fails you should get an error before the mysql_num_rows line.

If it succeeds it doesn't necessarily contain any rows - mysql_num_rows would return 0. If it succeeds and does contain rows mysql_num_rows will tell you how many.

Did you use the correct variable name in mysql_num_rows()?