Actually it is my file and that was all of install.php except for the 350 some odd lines that are an sql dump. I have made some slight modifications to help with any cofusion (I think). So here it goes again.
I am receiving:
Notice: Undefined variable: begin in /home/wwwfulc/public_html/install.php on line 21
when the script comes up.
Then it prints "Completed", but does nothing.
Here is the file with most of the info including the table generation dump. I omitted the insert dump because of its length.
You can see the whole thing as a text file at http://www.fulco.net/installphp.txt
<html>
<head>
<title>Xenology Database Install Script</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php
/*This document Copyright 2003 Scar's Legion ([url]http://st.fulco.net[/url]).
There is no warranty expressed or implied by the use of this script.
Use at your own risk. It is published as linkware, and must retain
all copyrights and links as they where originally programmed. If
you are caught using this script without meeting these standards
you will be prosecuted to the fullest extent.*/
error_reporting(E_ALL);
require("xenosetup.php");
$con = mysql_connect($host, $user, $pass) or die ("I cannot connect to the database because:" . mysql_error());
mysql_select_db($db, $con) or die("I cannot select the correct database because: " . mysql_error());
if ($begin==1){
$sql ="CREATE TABLE xeno (id int(10) NOT NULL auto_increment,
xeno varchar(50) default NULL, xenotxt text, image varchar(255)
default NULL, PRIMARY KEY (id), UNIQUE KEY id (id)) TYPE=MyISAM)";
echo "Completed.";
} else {
printf("<a href=\"%s?begin=1\">Begin</a><br>", $PHP_SELF);
}
?>
</body>
</html>
I have run this through my debugger and it comes up clean. I'm beginning to wonder if it's my dump itself that's flawed.
Thanks for your help so far, I hope this helps.