User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 403,098 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,173 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums

please help with mysql_num_rows():

Join Date: Jul 2005
Posts: 72
Reputation: 010081 is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
010081's Avatar
010081 010081 is offline Offline
Junior Poster in Training

please help with mysql_num_rows():

  #1  
Jul 6th, 2005
i got this message plz help ::

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/baje/public_html/Templates Management/index.php on line 17

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/baje/public_html/Templates Management/index.php on line 19

its like this plz point out

session_start();
include_once('common/common.php');

// global variable declaration & assignment
$action = $_GET['action'];
$goto = $_GET['goto'];

$SQL = "SELECT * FROM filedb ORDER BY urlname DESC";
DB_connect();
$result = mysql_query($SQL);
$found = mysql_num_rows($result);
DB_close();
while ($row = mysql_fetch_array($result)) {
$urlnameArray[] = $row['urlname'];
$filenameArray[] = $row['path'];
}
?>
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 1:54 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC