Webmastersite.net
Register Log In

Problem with mysql.php
Errors, errors, errors ...

Comments on Problem with mysql.php

FrankHagan


Usergroup: Customer
Joined: Jun 18, 2007

Total Topics: 3
Total Comments: 10
Posted Jun 27, 2007 - 11:01 PM:

I'm now getting these errors when importing links:


Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/sitename/public_html/links/databases/mysql.php on line 19


I've checked the permissions on mysql.php, and they are set to 666.

I'm tempted to bail on WSNLinks on this site, except that it is working so well on another site on the same server.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jun 28, 2007 - 9:50 AM:

Please read scripts.webmastersite.net/w...icles/mysql-errors-66.html

File permissions have nothing to do with the matter, but it's generally considered a poor security practice to make PHP files 666, and is illegal on some servers. Files should be left as the default (presumably 644) unless there's an instruction saying to chmod them.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.