Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Initial install trouble


Guest

Recommended Posts

:'(

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

Link to comment
Share on other sites

:'(

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).

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...