CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   PHP (http://www.codingforums.com/forumdisplay.php?f=6)
-   -   Anchor tag to be changed as php code (http://www.codingforums.com/showthread.php?t=239440)

mdusamaansari 09-29-2011 09:13 AM

Anchor tag to be changed as php code
 
Hi mates,

<tr>
<td class="Q1" valign="top" style="width: 5px;"><?php echo '<img src="faq/img/icons/article_icon.gif" border="0" alt="Question" title="Question" />'; ?></td>
<td valign="bottom" class="question"><p><a href="ques.php?recordID=<?php echo $faqs['question']; ?>"> <?php echo ($faqs['question']); ?></a></p></td>
</tr>

I have a link in a file as above said. The link works perfect and directs me to the particular file "ques.php".


Same like, I have another file where I have a class where a link is described in echo as below code.


public static function list_ext_faqs($sql_resultset){
while($ext_faqs=db_fetch_array($sql_resultset)){
$faq_question = FaqExternal::trim_link_text($ext_faqs['question']);

echo '<img src="faq/img/icons/article_icon.gif" border="0" alt="Question" title="Question" />&nbsp;<a href="' . FaqFuncs::format_url(FILE_FAQ, 'cid=' . $ext_faqs['cid'] . '&answer=' . $faqs['id'], 'SSL', $faqs['question']) . '#f'.$faqs['id'] . '">'.$faq_question.'</a>' . '<br />';
}
}



The anchor tag which is present in class to be converted as above said method. Even tell me the possible changes in query also.


All times are GMT +1. The time now is 12:53 PM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.