|
-
Jan 9th, 2008, 10:34 AM
#1
Thread Starter
New Member
unexpected T_LNUMBER?
I can't figure this out, I keep getting this error:
Parse error: syntax error, unexpected T_LNUMBER in /home/.zebediah/username/mysite.com/myDIR/install_db.php on line 58
Here's the php file(toned down)... Any ideas on what's wrong?(I got this php file with alot of errors, and I've been debugging it for while now, but I can't figure this one out)
I also highlighted line 58(it's not line 58 in this pasted version)
<?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<form name="form1" id="form1" method="post" action="">
<p align="center">
<label>Install Password
<input type="password" name="textfield" />
</label>
</p>
<p align="center">
<label>
<input name="submit" type="submit" id=" submit" value="install" />
</label>
</p>
</form>
<p> </p>
</body>
</html>
<?php
include('const.php') or die('damn const.php file is missing, kicking you out of the install process;');
$link = @mysql_connect($dbhost, $dbuser, $dbpass) or die('cannot find the database, captain');
mysql_select_db($dbname) or die('cannot select the database');
//check the password
if ($installpwd == $textfield)
{
mysql_query('CREATE TABLE '.$clanForumdb.' (
num int(11) NOT NULL default '0',
name text NOT NULL,
PRIMARY KEY (num)
)') or die('can forum db error, install aborted');
All of the vars are set in that other php file... Does anyone know what's wrong?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|