Hey and if your bored...I don't know why I am getting an unexpected T_ELSE in line 33. I don't see what I missed...
PHP Code:
<?
include "connect.php";
include "admin/variables.php";
print "<body link=$link>";
print "<body vlink=$vlink>";
print "<body bgcolor=$bgcolor>";
if(!isset($_GET['EntryID'])) { ?>
<? $piece="SELECT * FROM PIECES where EntryID='$EntryID'"; ?>
<table style="text-align: center; margin: auto; width: 75%;">
<tr>
<td colspan="2">
<? $piecequery=mysql_query($piece) or die("It died"); ?>
<? while($pq=mysql_fetch_array($piecequery)) { ?>
<font face="arial" size="5"><b><? echo($pg['name']); ?>
</td>
</tr>
<tr>
<td><img src="<? echo($pq['img2']); ?>"></td>
<td valign='top' align='left'><? echo($pq['largetext']); ?>
</td>
</tr>
<? } ?>
</table>
<? } ?>
<?
else if(!isset($_POST['submit'])) {
$rowselect="Select * FROM PIECES order by numa LIMIT 0,12"; ?>
<table style="text-align: center; margin: auto; width: 90%;">
<tr>
<th colspan="3">Identification Guide</th>
</tr>
<tr>
<? $rowquery = mysql_query($rowselect) or die("diesroot"); ?>
<? while($row = mysql_fetch_array($rowquery)) { ?>
<td style="color: black;">
<p>
<a href="index.php?EntryID=<? echo($row['EntryID']); ?>">
<img src="<? echo($row['img1']); ?>" alt="<? echo $row[name] ?>">
</a>
</p>
<p>
<? echo($row['numa'] . '-' . $row['numb'] . '-' . $row['numc']); ?>
</p>
<p>
<? echo($row['shorttext']); ?>
</p>
</td>
</tr>
<? } ?>
</table>
<? } ?>
Bookmarks