jossylala Posted March 18, 2010 Share Posted March 18, 2010 Here is the code <td width="3%"><span class="headerLinkColor">»</span></td> <td align="left"> <a target="leftFrame" href="<?=ADMIN_FOLDERS_PATH?><?=$folder_name?>/?sid=<?=$sid?>" class="headerLinkColor"> <?=$cat_name?></a> </td> </tr></table> <?PHP if( $flag == 4){ echo "</td>"; $flag=1; }else{ $flag++; } }// for loop ?></tr> </table> </td> And am getting links like this http://admin/credit_mgmt/?sid=532bb180e67ea7234d73502205321bfe i need the link to be site url/admin/credit_mgmt/?sid=532bb180e67ea7234d73502205321bfe any help? thanks Link to comment https://forums.phpfreaks.com/topic/195677-could-you-please-check-this-out/ Share on other sites More sharing options...
MatthewJ Posted March 18, 2010 Share Posted March 18, 2010 so add what you need to this variable where it is declared ADMIN_FOLDERS_PATH It's hard to answer questions when you leave out the relevant code or information Link to comment https://forums.phpfreaks.com/topic/195677-could-you-please-check-this-out/#findComment-1028068 Share on other sites More sharing options...
jossylala Posted March 18, 2010 Author Share Posted March 18, 2010 what should the variable am to add look like? Note this was working perfectly until ma host upgraded to another php version Link to comment https://forums.phpfreaks.com/topic/195677-could-you-please-check-this-out/#findComment-1028079 Share on other sites More sharing options...
trq Posted March 18, 2010 Share Posted March 18, 2010 Try using the proper php tags. <a target="leftFrame" href="<?php echo ADMIN_FOLDERS_PATH; ?><?php echo $folder_name; ?>/?sid=<?php echo $sid; ?>" class="headerLinkColor"> Link to comment https://forums.phpfreaks.com/topic/195677-could-you-please-check-this-out/#findComment-1028086 Share on other sites More sharing options...
jossylala Posted March 18, 2010 Author Share Posted March 18, 2010 Okay,here is my full header.php code. thats where the link is locate. @ thorpe, i tried changing it but its did work. please check this and get back to me. thanks <?php include ($_SERVER["DOCUMENT_ROOT"] ."/includes/config.inc.php"); $user_id = loggedUser($sid); $contents = selectFrom("SELECT id,user_id FROM " . TBL_ADMIN_USERS . " WHERE user_id='$user_id'"); $user_type = getUserType($user_id); switch ($user_type){ case('SA'): $Type="Sub Admin"; break; case('A'): $Type="Administrator"; break; default: $Type="Admin"; } $Result = getRights($user_id); ?> <html> <head> <title><?=TITLE?></title> <link rel="stylesheet" href="<?=ADMIN_CSS_PATH?>interface.css" type="text/css"> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <TABLE width="100%" height="120" border="0" cellPadding="0" cellSpacing="0" background="images/hdrbg.gif"> <TBODY> <TR> <TD height="120" valign="top"><TABLE height="120" cellSpacing="0" cellPadding="0" width="100%" border="0"> <TBODY> <TR> <TD vAlign="top" align="right" colSpan="3" height="11"></TD> </TR> <TR> <TD width="20%" height="85" align="center" vAlign="middle"><span class="indexText">Administration</span><br> <strong><a href="<?echo HOST_URL?>" target="_blank"><span class="linkColor"><?echo $HTTP_HOST?></span></a></strong></TD> <TD width=65% height="85" align="center" vAlign=top> <table width="100%" border="0"><tr> <?PHP $flag = 1; for ($j=0; $j<count($Result); $j++){ $folder_name = $Result[$j]["folder_name"]; $cat_name = $Result[$j]["cat_name"]; //echo "cat_name >>>>>>>>>> $cat_name"; if($flag == 1){ echo "<td>";} ?> <table width="100%" border="0"><tr> <td width="3%"><span class="headerLinkColor">»</span></td> <td align="left"> <a target="leftFrame" href="<?=ADMIN_FOLDERS_PATH?><?=$folder_name?>/?sid=<?=$sid?>" class="headerLinkColor"> <?=$cat_name?></a> </td> </tr></table> <?PHP if( $flag == 4){ echo "</td>"; $flag=1; }else{ $flag++; } }// for loop ?></tr> </table> </td> <TD width=15% height="85" align="center">Your IP is<br> <span class="linkColor"><?echo getIP();?></span> </TD> </TR> <TR> <TD vAlign="top" colSpan="3" height="24"><TABLE cellSpacing="0" cellPadding="0" width=100% border="0"> <TBODY> <TR> <TD width="467" height="24" background="images/hdr12.gif"> <TABLE height="24" cellSpacing="0" cellPadding="0" width="187" border="0"> <TBODY> <TR> <TD width="187" background="images/hdr11.gif"> <B>Logged in as: <span class="linkColor"><?php echo $contents['user_id']?></span></B></TD> </TR> </TBODY> </TABLE></TD> <TD width=69 valign="top" ><IMG height="24" src="images/hdr13.gif" width="54"></TD> <TD width="297" valign="top" > </TD> <TD vAlign="top" align="center" width="176"><span class="linkColor"> <strong>You are Admin. </strong></span></TD> </TR> </TBODY> </TABLE></TD> </TR> </TBODY> </TABLE></TD> </TR> </TBODY> </TABLE> </body> </html> EDIT: If your going to post code, please use tags. Link to comment https://forums.phpfreaks.com/topic/195677-could-you-please-check-this-out/#findComment-1028089 Share on other sites More sharing options...
scvinodkumar Posted March 18, 2010 Share Posted March 18, 2010 i think you better enable the php open short tag in php.ini, i hope it will solve your issue, since your code shows that you have used php short tags oftenly. Link to comment https://forums.phpfreaks.com/topic/195677-could-you-please-check-this-out/#findComment-1028090 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.