MySQL Forums
Forum List  »  General

Need assistance : Errcode: 2 (PHP + MySQL)
Posted by: Jeff Paris
Date: November 02, 2004 09:38AM

I am running this:



if($optimize==1) {
$sql="OPTIMIZE TABLE $table_name";
mysql_query($sql) or die(mysql_error( ));

if ($debugger==1) {
$sql="SHOW TABLE STATUS FROM $table_name";
$showquery=mysql_query($sql) or die(mysql_error( ));
echo $showquery;
}
echo '<a href="admin.php">Go back to admin</a>';
}





The first part, optimize, works fine with debugging off. However, the info I am trying to return doesn't and I just get:




Warning: mysql_query(): Unable to save result set in /home/zerofunk/public_html/emaildev/admin/functions.php on line 55
Can't read dir of './email_users/' (Errcode: 2)




I have never seen this error, any help offered would be much appreciated.
Thank you for your time!

Options: ReplyQuote


Subject
Written By
Posted
Need assistance : Errcode: 2 (PHP + MySQL)
November 02, 2004 09:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.