Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6208533
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:49:30+00:00 2026-05-24T05:49:30+00:00

How can i link the title in this code. echo <div id=’vblock’>; echo <div

  • 0

How can i link the title in this code.

 echo "<div id='vblock'>";
      echo "<div style='width:130px;height:95px;float:left'>";
            echo '<a class="bloc_ca" href="'.$video['video_id'].'_'.str_replace(" ","-",substr(html_entity_decode($video['video_title']),0,20)).'.html"><img src="'.$thumb.'" alt="'.$vtit.'" width="120" height="90"></a></div>';
    echo "<div class='cvtitle'>
        <div><b>".html_entity_decode(substr($video['video_title'],0,100))."..</b></div>
        <div class='cvdisc'><span style='word-break:wrap'>".html_entity_decode(substr($video['video_desc'],0,100))."</span></div>
        <div class='cvviews'> View Count: <b>".$video['views']."</b></div></div></div>";

this is another code linked. its working

echo '<a class="a_bloc" href="'.$video['video_id'].'_'.str_replace(" ","-",substr(html_entity_decode($video['video_title']),0,20)).'.html">
                <div class="bloc">
                <img src="'.$thumb.'" alt="'.$vtit.'" height="60" width="80">
                <div class="txt">'.$video['video_title'].'</div>
                </div></a>';
    }
    ?>    

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:49:31+00:00Added an answer on May 24, 2026 at 5:49 am
    echo "<div id='vblock'>";
    echo "<div style='width:130px;height:95px;float:left'>";
    echo '<a class="bloc_ca" href="'.$video['video_id'].'_'.str_replace(" ","-",substr(html_entity_decode($video['video_title']),0,20)).'.html"><img src="'.$thumb.'" alt="'.$vtit.'" width="120" height="90"></a></div>';
    echo "<div class='cvtitle'><div><a class="bloc_ca" href="'.$video['video_id'].'_'.str_replace(" ","-",substr(html_entity_decode($video['video_title']),0,20)).'.html"><b>".html_entity_decode(substr($video['video_title'],0,100))."..</b></a></div><div class='cvdisc'><span style='word-break:wrap'>".html_entity_decode(substr($video['video_desc'],0,100))."</span></div><div class='cvviews'> View Count: <b>".$video['views']."</b></div></div></div>";
    

    It aint pretty though. All you need to do is wrap the anchor:

    <a class="bloc_ca" href="'.$video['video_id'].'_'.str_replace(" ","-",substr(html_entity_decode($video['video_title']),0,20)).'.html">YOUR LINK TEXT</a>
    

    Around the title in the string. Because you are reusing the anchor href and it’s quite a long one I would favour setting a variable to the href value then using the variable for clarity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I do this? <head runat=server> <title></title> <link rel=stylesheet href=default.css type=text/css> <asp:ContentPlaceHolder ID=head
i can reference link with specific id with following code $(document).ready(function(){ $(a#example_link_id).click(function(event){ var url
I have this code, and it renders this HTML. How can I apply CSS
can this code snippet be modified to reveal html coding? <?php $_option = $this->getOption()
This is my code in index.php of the WordPress theme: <div id=content> <?php if
Possible Duplicate: How can I edit my code to echo the data of child's
I have the following code: <html> <head> <title><?php echo $GLOBALS['L']['title']; ?></title> </head> <body> <ul
can anybody tell me what is wrong with this code, i am getting the
I can link the results of an existing table/view to an Excel spreadsheet (by
In svn you can link a repository to any folder in another svn repository.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.