Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-29-2011, 09:13 AM   PM User | #1
mdusamaansari
New to the CF scene

 
Join Date: Sep 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
mdusamaansari is an unknown quantity at this point
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.
mdusamaansari is offline   Reply With Quote
Reply

Bookmarks

Tags
anchor, class, echo, php

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:08 PM.


Advertisement
Log in to turn off these ads.