Jump to content

Help with my site


Recommended Posts

Hello I have a site and I am ok with html but no good with php.

Parse error: syntax error, unexpected '}' in C:\Users\Damian\Desktop\Logo\prev0~.php on line 146

 

 

I have installed my script and its been running fine for months then all of a sudden I went into the index_top/php file in the inlcudes folder and addes a meta tag which was missing since which I have deleted now and now I get a blank page. Here is the code below if anyone can help please.

 

<!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>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859" />

<title>BidOz.com.au Bid Now! Buy Now!</title>

<meta name="description" content="BidOz.com.au The international market place for buying and selling products and services." />

<meta name="keywords" content="auction,private auction,retail,autos,sports,home and,garden,antiques,collectibles,art,handycrafts,toys,hobbies,tools,diy,clothing,jewelry,watches,beauty products,music,magazines," />

<meta http-equiv="Content-Language" content="en-us" />

<meta name="robots" content="all,index,follow" />

<meta name="distribution" content="Global" />

<meta name="rating" content="General" />

<meta name="revisit after" content="15 days" /><input value="auction AUCTION auctions AUCTIONS auction auctions auction auctions Auction Auctions auction auction auction" id="hidden1" name="hidden1" type="hidden" />

</head>

<body onload="ShowServerTime();">

<table style="width: 101%" border="0" cellpadding="5" cellspacing="2">

<tbody>

<tr>

<td rowspan="2" width="10%" valign="top"><a href="../../../index.php"><img alt="" src="images/<?= $logo ?>" width="200px" border="0" /></a></td><!--style="background-repeat:no-repeat;" -->

<td style="background-position: center bottom; background-repeat: no-repeat" background="images/header2.jpg">

<table style="width: 97%" align="center" border="0" cellpadding="0" cellspacing="0">

<tbody>

<tr>

<td style="padding-left: 12px; width: 505px">  <a href="index.php"><font color="#03099a">Home</font></a><font color="#03099a"></font> <!-- <font color="#9999FF">|</font> <a href="pay.php">pay</a> --><? if(empty($_SESSION[userid]))

/* {

?><font color="#9999ff">|</font><a href="user_reg.php">

<register></register></a> <?

} */

?><font color="#9999ff">|</font> <a href="about_us.php"><font color="#03099a">About us</font></a><font color="#9999ff">|</font> <a href="pay.php"><font color="#03099a">Pay</font></a><font color="#9999ff">|</font> <a href="community.php"><font color="#03099a">Community</font></a> <font color="#9999ff">|</font> <a href="sitemap.php"><font color="#03099a">Site map</font></a></td>

<form name="search" action="search.php" method="post">

<td align="right"><input name="key_word" class="txtmid" type="text" />   <input name="mode" value="keysearch" type="hidden" /><input name="btnSearch" value="Search" class="buttonsearch" type="submit" /></td></form></tr>

<tr>

<td style="padding-left: 7px; width: 505px">

<table style="border: 1px solid #e9e9e9" width="100%" bgcolor="white" border="0" cellpadding="1" cellspacing="0" height="25">

<tbody>

<tr><?

if($click=="buy")

{ ?><?

}

else

{

?>

<td style="border-right: 1px solid #ccccff" class="tdhead_2" align="center"><a href="browse_cate.php" style="text-decoration: none"><font color="#00cc00">Buy</font></a></td><?

}

?><?

if($click=="sell")

{ ?>

<td style="border-right: 1px solid #ccccff" class="tdhead_3" align="center"><a href="choose_sell_format.php" style="text-decoration: none"><font color="#e9ab17">Sell</font></a></td><?

}

else

{

?>

<td style="border-right: 1px solid #ccccff" class="tdhead_2" align="center"><a href="choose_sell_format.php" style="text-decoration: none"><font color="#e9ab17">Sell</font></a></td><?

}

?><?

if($click=="Forums")

{ ?>

<td style="border-right: 1px solid #ccccff" class="tdhead_3" align="center"><a href="../../../forum" style="text-decoration: none"><font color="B93B8F">Forums</font></a></td><?

}

else

{

?>

<td style="border-right: 1px solid #ccccff" class="tdhead_2" align="center"><a href="../../../forum" style="text-decoration: none"><font color="#b93b8f">Forums</font></a></td><?

}

?><?

if($click=="myauction")

{ ?>

<td style="border-right: 1px solid #ccccff" class="tdhead_3" width="80" align="center"><a href="myauction.php" style="text-decoration: none"><font color="#cc0000">My Auction</font></a></td><?

}

else

{

?>

<td style="border-right: 1px solid #ccccff" class="tdhead_2" width="80" align="center"><a href="myauction.php" style="text-decoration: none"><font color="#cc0000">My Auction</font></a></td><?

}

if($click=="stores")

{

?>

<td class="tdhead_2" style="border-right: 1px solid #ccccff" align="center"><a href="store_first.php" style="text-decoration: none"><font color="#3333ff">Stores</font></a></td><?

}

else

{

?>

<td class="tdhead_2" style="border-right: 1px solid #ccccff" align="center"><a href="store_first.php" style="text-decoration: none"><font color="#3333ff">Stores</font></a></td><?

}

?><?

 

/* if($click=="help")

{ ?>

<td class="tdhead_3" align="center"><a href="easysearch.php?show_all=wanted&mode=easy&cbocat=1" style="text-decoration: none">Wanted Ads</a></td><?

}

else

{

?>

<td class="tdhead_2" align="center"><a href="easysearch.php?show_all=wanted&mode=easy&cbocat=1" style="text-decoration: none">Wanted Ads</a></td><?

} */

if($click=="help")

{ ?>

<td class="tdhead_3" align="center"><a href="help.php" style="text-decoration: none"><font color="#ff6600">Help</font></a></td><?

}

else

{

?>

<td class="tdhead_2" align="center"><a href="help.php" style="text-decoration: none"><font color="#ff6600">Help</font></a></td><?

}

?></tr></tbody></table> </td>

<td align="right" valign="top"><a href="advanced_search.php"><font color="#03099a">Advanced Search</font></a></td></tr></tbody></table></td></tr>

<tr><?

if(empty($_SESSION[userid]))

{

?>

<td>Welcome Guest ! <a href="signin.php"><font color="#03099a">Sign in</font></a> or <a href="user_reg.php"><font color="#03099a">Register</font></a><?

}

else

{

$alert_sql="select count(*) from user_alert where alert_type='P' and buyer_id=$_SESSION[userid] and delmode='1'";

$alert_recordset=mysql_query($alert_sql);

$alert_records=mysql_fetch_array($alert_recordset);

$alert_sell_sql="select count(*) from user_alert where alert_type='R' and seller_id=$_SESSION[userid] and delmode='1'";

$sell_recordset=mysql_query($alert_sell_sql);

$sell_records=mysql_fetch_array($sell_recordset);

$tot_alert=$alert_records[0]+$sell_records[0]; ?></td>

<td>Welcome <?= $_SESSION[username]; ?> ! <a href="signout.php"><font color="#03099a">Sign out</font></a><? if($tot_alert!= 0)

{

?>

You Have <a href="alert.php"><font color="#03099a"><?= $tot_alert; ?><? if($tot_alert==1)

{

?>

alert ! </font></a><?

 

}

else if($tot_alert>1)

{

?>

alerts ! <?

}

} // if($tot_alert!=0)

 

?> </td><?

 

}

?></tr></tbody></table>

<table style="width: 980px; height: 95px" align="center" border="0" cellpadding="0" cellspacing="0"><!--

<tr height=50><!-->WPCOMMENT]-->

<tbody>

<tr>

<td colspan="2" background="images/line.gif"><?

}

else if($ret[css_name]=="Style1")

{

?><br />

</td>

<td colspan="2" background="images/line1.gif"><?

}

else if($ret[css_name]=="Style2")

{

?><br />

</td>

<td colspan="2" background="images/line2.gif"><?

}

else if($ret[css_name]=="Style3")

{

?><br />

</td>

<td colspan="2" background="images/line3.gif"><?

}

else if($ret[css_name]=="Style4")

{

?><br />

</td>

<td colspan="2" background="images/line4.gif"><?

}

else if($ret[css_name]=="Graphic Interface")

{

$header_res=mysql_query("select * from admin_css where css_id=31");

$header_row=mysql_fetch_array($header_res);

?><br />

</td>

<td colspan="2" background="images/<?= $header_row[css_value]; ?>"><?

}

?>

 

        <font color="white" size="+2"><strong><?= $title; ?></strong></font></td></tr>

-->

<tr>

<td><?

// require 'include\connect.php';

$sql="select * from category_master where category_head_id=0 order by category_name";

$recordset=mysql_query($sql);

?>

<table style="height: 39px" width="100%" align="center" background="images/searchbar_big.jpg" border="0" cellpadding="4" cellspacing="0">

<form name="form2" action="search.php" method="post">

<tbody>

<tr>

<td width="23%" align="center"> <font color="#3c2889">

<div id="STime"></div></font></td>

<td width="15%"><input name="product" class="txtmed" type="text" /></td>

<td width="28%"><select name="cbocat" class="cbobig">

<option value="all">All categories</option><?

while($record=mysql_fetch_array($recordset))

{

?>

<option value="<?= $record[category_id]?>"><?= $record[category_name]?> </option><?

}

?></select></td><input name="mode" value="easy" type="hidden" />

<td width="15%"><input name="btnSearch" value="Search" class="buttonsearch" type="submit" /></td></tr>

<tr>

<td width="20%"><a href="advanced_search.php" class="smalla">Advanced Search</a></td></tr></tbody></form></table></td></tr>

<tr></tr>

<tr>

<td><br />

</td></tr></tbody></table>

</body>

</html>

Link to comment
https://forums.phpfreaks.com/topic/178591-help-with-my-site/
Share on other sites

Ok firstly I have put my question in PHP Installation & Configuration

 

I am having a Configuration meaning not working to optimal as designed.

 

I have no idea about php and I am learning, I dont know what indeation means or how to find out if i have to many

Link to comment
https://forums.phpfreaks.com/topic/178591-help-with-my-site/#findComment-941893
Share on other sites

I am having a Configuration meaning not working to optimal as designed.

 

I'm sorry, but this board refers to the installation and configuration of the php parser itself, not php scripts.

 

I dont know what indeation means

 

Programmers place code in logical blocks which are indented for easier reading. eg;

 

if ($this->expression) {
    echo "do this";
} else {
    echo "do that";
}

 

Indenting this way makes it very apparent when you have braces that don't match.

Link to comment
https://forums.phpfreaks.com/topic/178591-help-with-my-site/#findComment-941896
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.