Jump to content

php same site links


nezona

Recommended Posts

Hi I have the following same site link's images, that i can see in html,

 

[empty]	/desc/?pid=48&cat=4
2.	[empty]	/desc/?pid=54&cat=4
3.	[empty]	/desc/?pid=64&cat=4
4.	[empty]	/desc/?pid=66&cat=4
5.	[empty]	/desc/?pid=75&cat=4
6.	[empty]	/desc/?pid=76&cat=4

 

however within php:-

<?

$page_title = 'Office Workstations-A range of different models to suit your needs at www.primoe.com';
            $keywords = 'office furniture, computer workstation, office desks, computer desks, office workstations, used computer desks, office cubicles, office chairs, home  enviroment, steel case, knoll,  steelcase,  register,  shopping cart';
$pageDescription = 'Stocking a range of office workstations and office desks, from steel to knoll effect. A whole range of office furniture is available, used and new.';
$page="workstations";include_once("../includes/header.php");
$count=0;
$idcount=0;
$sqlSel="SELECT * from products where category='4'";
$resSel=mysql_query($sqlSel) or die (mysql_error());
$affrows =mysql_num_rows($resSel);

if ($affrows > 0)
{
	while($rowssel=mysql_fetch_array($resSel))
	{
		$count++;
		$idcount++;
		$pid=$rowssel['id'];
		$name=$rowssel['name'];
		$price=$rowssel['price'];
		$img=$rowssel['image'];
		$jid="p".$idcount;

		if ($count==1)		
		{
			$content.='
				<tr>
					<td width="155px" height="240px" background="'.IMAGE_PATH.'bgbox.jpg"  valign="top" id="'.$jid.'">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr> 
								<td height="19px" width="155px" valign="bottom" class="whttxt">   '.$name.'</td>
							</tr>
							<tr> 
								<td height="19px" width="155px" align="right" class="whttxt">$'.$price.'         </td>
							</tr>
							<tr>
								<td height="202px" width="155px" align="center" colspan="2"><a href="desc/?pid='.$pid.'&cat=4" onmouseover="mover(\''.$jid.'\')" onmouseout="mout(\''.$jid.'\')"><img src="../includes/thumb.php?src='.$img.'&x=152&y=201&f=0" border="0"></a></td>
							</tr>
						</table>
					</td>

			';
		} else if ((($count%4)==0) || $count==$affrows){

			$content.='
					<td width="155px" height="240px" background="'.IMAGE_PATH.'bgbox.jpg"  valign="top" id="'.$jid.'">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr> 
								<td height="19px" width="155px" valign="bottom" class="whttxt">   '.$name.'</td>
							</tr>
							<tr> 
								<td height="19px" width="155px" align="right" class="whttxt">$'.$price.'         </td>
							</tr>
							<tr>
								<td height="202px" width="155px" align="center" colspan="2"><a href="desc/?pid='.$pid.'&cat=4" onmouseover="mover(\''.$jid.'\')" onmouseout="mout(\''.$jid.'\')"><img src="../includes/thumb.php?src='.$img.'&x=155&y=202&f=0" border="0"></a></td>
							</tr>
						</table>
					</td>
					</tr>
				';
				$count=0;
		} else {
			$content.='
					<td width="155px" height="240px" background="'.IMAGE_PATH.'bgbox.jpg"  valign="top" id="'.$jid.'">
						<table width="100%" border="0" cellpadding="0" cellspacing="0">
							<tr> 
								<td height="19px" width="155px" valign="bottom" class="whttxt">   '.$name.'</td>
							</tr>
							<tr> 
								<td height="19px" width="155px" align="right" class="whttxt">$'.$price.'         </td>
							</tr>
							<tr>
								<td height="202px" width="155px" align="center" colspan="2"><a href="desc/?pid='.$pid.'&cat=4" onmouseover="mover(\''.$jid.'\')" onmouseout="mout(\''.$jid.'\')"><img src="../includes/thumb.php?src='.$img.'&x=155&y=202&f=0" border="0"></a></td>
							</tr>
						</table>
					</td>
				';

		}
	}		
} else{
	$content.='<font class="redtxt">We are in the process of adding more products, Kindly check with us later.</font>';
}

?>
<script language="JavaScript">
function mover(id)
{
/*var obj = document.getElementById(id);
alert(obj.background);
obj.background='../images/bgboxhover.jpg';*/

var TableObj = document.getElementById(id);
if (TableObj && TableObj.style) {
TableObj.style.backgroundImage ='url("../images/bgboxhover.jpg")';
}
}

function mout(id)
{
/*var obj = document.getElementById(id);
obj.background='../images/bgbox.jpg';*/
var TableObj = document.getElementById(id);
if (TableObj && TableObj.style) {
TableObj.style.backgroundImage ='url("../images/bgbox.jpg")';
}	
}
</script>

<!-- Body -->
<td align="left" valign="top" width="75%" height="85%" >
<table border="0" width="780">
	<tr>
		<td class="btext" align="center" valign="top"><br>
			<table width="95%" height="100%" border="0">
				<tr>
					<td valign="top"><IMG src="<? echo IMAGE_PATH; ?>workstations.jpg"></td>
				</tr>
				<tr>
					<td> </td>
				</tr>
				<tr>
					<td align="left">
						<table  border="0" cellpadding="0" cellspacing="12">
							<?=$content?>
						</table>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</td>
</tr>
<!-- End of body -->
<?
include_once("../includes/footer.php");
?>

 

the links dissappear?. can anyone help me the same site link's need text, but I can't do that without finding the links in php

 

kind regards

neil

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.