Jump to content

parse error help?


sub7av

Recommended Posts

I am getting this dam error its driving me mad!

 

Parse error: syntax error, unexpected '>' in /home/site5/public_html/home.php on line 161

 

the error is on line 161 which is: 

echo '<title> <img src="ico/sub7.gif">    ' . displayOnline() . '  </title>';

 

 

code:

 

<table width="100%" cellspacing="1" cellpadding="4" border="0">

						<td class="windowbg" colspan="2"><br><font size="1" color="#428cd1">


                           echo '<title> <img src="ico/sub7.gif">    ' . displayOnline() . '  </title>';

?></b></font></a><Br>

Link to comment
https://forums.phpfreaks.com/topic/93191-parse-error-help/
Share on other sites

sure,  here is the code I want to insert:  

 

 

 

<?php

$con = mysql_connect('localhost', 'thesink', 'pat');
mysql_select_db('thesink_meo' ,$con);

$t = time() - 7600;
$q = mysql_query("select username FROM user WHERE lastactivity > $t");

while ($u = mysql_fetch_array($q))
  echo $u['username']." ";
?>

 

 

I want to insert this code into my webpage but always get error, if I put this code right at the top it works but I want it to be inbetween   <b><img src="ico/max.gif">     HERE    </title></b></font></a><Br>

any help or ideas?  if you can altar my code it would be great because thats where I am getting the problems :(

 

 

<? 

echo '<title>'.$site_title.' - Home</title>

<table width="100%" cellspacing="1" cellpadding="4" border="0">
<tr valign="top">
	<td class="windowbg" width="70%"><br><img src="images/maxsmall.gif" align="left" hspace="17" vspace="10"> 
	  <font size="3" class="title_text"><BR>




   
       
	';
	if($gs_user == 1){
		echo '<hr size="1" noshade="1">
		 <font size="3">Subscribe to maxlucy</font>';


		if(mysql_num_rows($subscriptions) > 0){
			echo 'You are currently subscribed to max.<a href="index.php?action=subscribe"><b>Click here to remove your subscription</b></a>.';
		} else {
			echo 'You can enable subscriptions to receive emails when a new video is added. <a href="index.php?action=subscribe"><b>Click here to enable subscriptions</b></a>.';
		}
	}
	echo '</td>
	<td class="windowbg" width="24%">';
	if($gs_user == 1){
		echo '<table width="100%" cellspacing="1" cellpadding="4" border="0" class="border2">
			<tr>
				<td class="windowbg4"><img src="ico/user.png"> <b>Welcome back, '.$gs_account['display_name'].'.</b></td>
			</tr><tr>
				<td class="windowbg3"><left><a href="index.php?action=view_profile&user='.$gs_account['username'].'"><img src="ico/user.png" border="0">View Profile</a> <a href="index.php?action=admin&sec=modify_profile"><img src="ico/user_edit.png" border="0"> Modify Profile</a></left></td>
			</tr>';

	} else {
		echo '<table width="100%" cellspacing="1" cellpadding="4" border="0" class="border2">
			<tr>
				<td class="windowbg4"> <b>Download All max Versions</b></td>
			</tr><tr>	
				<td class="windowbg2">
				<form action="index.php?action=login&sub=1" method="post">
				<table width="100%" cellspacing="1" cellpadding="4" border="0">


		</table>';
	}
	echo '
	<table width="100%" cellspacing="1" cellpadding="4" border="0" class="border2">
		<tr>
			<td class="windowbg4"> <center><b>DOWNLOADS</b></td>
		</tr><tr>
			<td class="windowbg3"><form action="index.php?action=login&sub=1" method="post">
				<table width="100%" cellspacing="0" cellpadding="0" border="0">

				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.2.zip"><img src="ico/max2.gif" border="0"></a></center></td>
                           
					</tr>
				</table>
				</form>
				</td>
			</tr><tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.5%20lucy.zip"><img src="ico/maxleg.gif" border="0"></a></center></td>
			</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.4%20Defcon8.zip"><img src="ico/maxdef.gif" border="0"></a></center></td>
			</tr>
</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.3%20Bonus.zip"><img src="ico/maxbon.gif" border="0"></a></center></td>
			</tr>
</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.2%20Muie.zip"><img src="ico/maxmu.gif" border="0"></a></center></td>
			</tr>
</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.1%20Gold.zip"><img src="ico/maxgold.gif" border="0"></a></center></td>
			</tr>
</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.1.0.zip"><img src="ico/max21.gif" border="0"></a></center></td>
			</tr>
</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v2.0.zip"><img src="ico/max20.gif" border="0"></a></center></td>
			</tr>
</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.9.zip"><img src="ico/max19.gif" border="0"></a></center></td>
			</tr>
</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.8.zip"><img src="ico/max18.gif" border="0"></a></center></td>
			</tr>
</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.7.zip"><img src="ico/max17.gif" border="0"></a></center></td>
			</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.6.zip"><img src="ico/max16.gif" border="0"></a></center></td>
			</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.5.zip"><img src="ico/max15.gif" border="0"></a></center></td>
			</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.4.zip"><img src="ico/max14.gif" border="0"></a></center></td>
			</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.3.zip"><img src="ico/max13.gif" border="0"></a></center></td>
			</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.2.zip"><img src="ico/max12.gif" border="0"></a></center></td>
			</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.1.zip"><img src="ico/max11.gif" border="0"></a></center></td>
			</tr>
<tr>
				<td class="windowbg3"><center><a href="http://maxlucy.com/downloads/max%20v1.0.zip"><img src="ico/max10.gif" border="0"></a></center></td>
			</tr>
		</table>';




			echo '</td>
		</tr>
	</table>
	</td>
</tr>
</table>

<center><table width="100%" cellspacing="1" cellpadding="4" border="0" class="border">
			<tr>
				<td class="windowbg4"><center><b>Users Online<b> </b> <b></b></td>
			</tr><tr>	
				<td class="windowbg3"><center><center><font size="1">We currently have the following users online</font></center>
				<form action="index.php?action=login&sub=1" method="post">
				<table width="100%" cellspacing="1" cellpadding="4" border="0">

						<td class="windowbg" colspan="2"><br><font size="1" color="#428cd1">


                          <b><img src="ico/max.gif">  </title></b></font></a><Br>









					<br></tr>
				</table>
				</form>
				</td>
			</tr><tr>
				<td class="windowbg3"><center><center> <a href="index.php?action=home">www.maxlucy.com</a></td>
			</tr
		</table>';
?>

Link to comment
https://forums.phpfreaks.com/topic/93191-parse-error-help/#findComment-477449
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.