Jump to content

[SOLVED] Question about PHP with HTML format


$username

Recommended Posts

Hello all,

    I am trying to get this code to display correctly.

I know that I must have the html incorrectly.

Can some one let me know what I am doing wrong with the code.

<li><a href=\"{.$row506['HistoryAccountNumber'].}\">{.$row506['HistoryAccountNumber'].}</a></li>

 

<?PHP	echo	
		"<h2>Recently Viewed</h2>
		<ul class=\"sidemenu\">				
			<li><a href=\"{.$row506['HistoryAccountNumber'].}\">{.$row506['HistoryAccountNumber'].}</a></li>

		</ul>	

		<h2>Links</h2>
		<ul class=\"sidemenu\">
			<li><a href=\"/\"></a></li>

		</ul>

		<h2>Sponsors</h2>
		<ul class=\"sidemenu\">

		</ul>

		</div>";
	?>

 

thank you,

Brett

Try:

<?php
echo	
		'<h2>Recently Viewed</h2>
		<ul class="sidemenu">				
			<li><a href="'.$row506['HistoryAccountNumber'].'">'.$row506['HistoryAccountNumber'].'</a></li>

		</ul>	

		<h2>Links</h2>
		<ul class="sidemenu">
			<li><a href="/"></a></li>

		</ul>

		<h2>Sponsors</h2>
		<ul class="sidemenu">

		</ul>

		</div>';
	?>

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.