Installation script problem
Posted: Fri Oct 29, 2010 1:19 pm
I am trying to run an installation script which is failing to create any tables in the target database.
I am getting the alert "Notice: Undefined index: reuse" in response to the following line in install.php:
And then a whole string of errors relating to line 4 in the following function from install.php:
This produces the error "Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource."
Any ideas, please?
I am getting the alert "Notice: Undefined index: reuse" in response to the following line in install.php:
Code: Select all
if ($_POST['reuse']=='true')Code: Select all
function tableExists($tablename) {
$SQLQuery = "SHOW TABLES";
$Result = mysql_query($SQLQuery);
while($Row=mysql_fetch_row($Result)){
if($Row[0]==$tablename){
return true;
}
}
return false;
}Any ideas, please?