Guest Posted April 6, 2008 Posted April 6, 2008 :'( When running through an install I receive this: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /mnt/shop/install/includes/functions/database.php on line 39 at the top of my page, along with: Finished! The installation and configuration was successful! I'm also noticing that the mySql db I created is still empty... I'm running CentOS 5.1, PHP 5.1. MySQL 5.? Also the first page of the install does give me all green check marks... even for such items as: PHP Settings register_globals Off magic_quotes Off file_uploads On session.auto_start Off session.use_trans_sid Off Should the above be turn on instead of off???? Please help, ~Brian
Guest Posted April 6, 2008 Posted April 6, 2008 :'( When running through an install I receive this: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /mnt/shop/install/includes/functions/database.php on line 39 at the top of my page, along with: Finished! The installation and configuration was successful! I'm also noticing that the mySql db I created is still empty... I'm running CentOS 5.1, PHP 5.1. MySQL 5.? Also the first page of the install does give me all green check marks... even for such items as: PHP Settings register_globals Off magic_quotes Off file_uploads On session.auto_start Off session.use_trans_sid Off Should the above be turn on instead of off???? Please help, ~Brian What does line 39 say (mine is a blamk line).
Guest Posted April 6, 2008 Posted April 6, 2008 What does line 39 say (mine is a blamk line). Line 38 & 39 reads: 38 function osc_db_num_rows($db_query) { 39 return mysql_num_rows($db_query); } Do I need global variables on in PHP ?
Guest Posted April 6, 2008 Posted April 6, 2008 Line 38 & 39 reads: 38 function osc_db_num_rows($db_query) { 39 return mysql_num_rows($db_query); } Do I need global variables on in PHP ? Try this for line 39 return mysql_num_rows($db_query); and this on line 40 } The RC versions do not need register global on.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.