
January 14th, 2003, 09:37 PM
|
|
Junior Member
|
|
Join Date: Jan 2003
Posts: 13
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
Parse Error that makes no sense!
It says I have a parse error on line 85 so here is the code...
PHP Code:
<?
session_start();
?>
<html>
<head>
<title>Galaxus.:.Play Your Way</title>
<style type="text/css">
table.wel
{
position: absolute;
top: 10px;
left: 10px
}
table.we
{
position: absolute;
top: 25px;
left: 10px
}
</style>
<style type="text/css">P,body,TD
A:link {
color:blue;}
A:hover {
color:blue; background:black;}
A:visited {color:blue;}
</style>
<style>
.tditem {
color: white;
}
</style>
</head>
<body bgcolor="white">
<?php require_once("check.php"); ?>
<?php
$_GET['id'];
$sql3 = "SELECT * FROM users WHERE userid = '$id'";
$result = mysql_query($sql3);
$result1 = mysql_num_rows($result);
if ($result1 = 0) {
Print "User not found!";
} else {
$profile = mysql_fetch_array($result);
?>
<br><br><br>
<center>
<table width="70%" bgcolor="black" border="0">
<tr>
<td>
<center><font color="white">
<?php Print $username . "'s Profile'"; ?>
</font></center></td>
</tr>
<tr>
<td bgcolor="white"><font color="blue">
Username: <?php Print "$username"; ?><br>
<?php
Print "Name: {$profile['first_name']}";
if ($profile['disp1'] == 0) {
Print "Email: {$profile['email']} <br>";
}
if ($profile['disp2'] == 0) {
Print "Galas: {$profile['galas']}";
Print "Parent: {$profile['parent']} <br>";
Print "IQ: {$profile['iq']} <br>";
Print "Gender: {$profile['gender']} <br>";
if ($profile['gender'] == male) {
Print "<br>He Says: {$profile['profile']}";
} elseif ($profile['gender'] == female) {
Print "<br>She Says: {$profile['profile']}";
}
}
?>
</font>
</center>
</td>
</tr>
</table>
<?php require_once("galaxus.php");
?>
</body>
</html> //line 85
As you can see, line 85 is just the closing html tag which there is nothing wrong with and I cant find an error with anything else!
Edit: Think I may have found it... i'll be back if it doesnt work
Last edited by PhreakShow64 : January 14th, 2003 at 09:48 PM.
|