Jump to content

[SOLVED] mysql_num_rows problem


thecase

Recommended Posts

Hi,

 

If I do this

 

$filename = 'replays/000Speeda00TMfff01004029.Replay.Gbx';

        $result = mysql_query("SELECT download1 FROM race WHERE download1 = $filename");
        $num_rows = mysql_num_rows($result);

echo "$num_rows Rows\n";

 

The output is just Rows. It doesnt count them, there is no number. Although when I do the SQL query in phpadmin it works

 

Showing rows 0 - 16 (17 total, Query took 0.0004 sec)

 

Have I set the query up wrong?

Link to comment
https://forums.phpfreaks.com/topic/162909-solved-mysql_num_rows-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.