I was wondering if I could have someone review the code below and point out any ideas to streamline it.
The code does work, but seems to take forever to process. I have tried it on a few different computers and they are all slow.
Any suggestions would be greatly appreciated.
<?php
include ("review/config.php");
include ("http://www.diyaudiobuilder.com/templates/header_graphic.inc");
include ("http://www.diyaudiobuilder.com/templates/header.inc");
$words="";
if (isset($_GET['words']) && $_GET['words']!="")
{
@$words=stripslashes($_GET['words']);
}
?>
<?php // form for the input of search criteria in search box ?>
<form method="get" action="<?php echo "$directory"; ?>/search/index.php">
<div align="center">
<input type="hidden" name="cmd" value="search" />
Search for:
<input name="words" type="text" value="<?php echo "$words"; ?>" size="20"
maxlength="255" /> in
<select name="searchWhere">
<option value="0" <? if(@$_GET['searchWhere']=="0") echo "selected"
?>>Reviews</option>
<option value="1" <? if(@$_GET['searchWhere']=="1")
echo "selected" ?>>Summary</option>
<option value="2" <? if(@$_GET['searchWhere']=="2")
echo "selected" ?>>Item Name</option>
<option value="3" <? if(@$_GET['searchWhere']=="3")
echo "selected" ?>>Categories</option>
</select>
<input name="mode" type="hidden" value="normal">
<input type="submit" value="Search" />
<?php // clickable hyperlinks to right of search criteria box ?>
|
</span><a href="<?php echo "$directory"; ?>/index2.php?item_id=1&<?=@SID?>">Review</a>
|
<? if (@$_SESSION['signedin'] != "y") { ?>
<a href="<?php echo "$directory"; ?>/login/signin.php">Login</a><? } else {
@$back = $_SERVER['PHP_SELF'];
?>
<a href="<?php echo "$directory"; ?>/logout.php?<?=SID?>">Logout</a>
<? } ?>
<? if (@$_SESSION['signedin'] != "y") { ?>
|
<a href="<?php echo "$directory"; ?>/login/register.php?item_id=<? echo @$_GET['item_id']; ?>">Register</a>
<? } else {
$back = $_SERVER['PHP_SELF'];
?>
<? } ?>
|
<a href="<?php echo "$directory"; ?>/usercp/index.php?<?=@SID?>">User Control Panel</a>
|
</form>
Thanks in advance for the help
Chris