INNER JOIN???

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

User avatar
apek
Forum Commoner
Posts: 96
Joined: Tue Jan 06, 2004 11:19 pm
Location: Holiday Plaza Johor Bahru

Post 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!!!!
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post 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.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Re: .........

Post 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()?
Post Reply