Jump to content

echo a href?


Padgoi

Recommended Posts

Hi, my PHP skills are kinda weak and I've been trying to get this to work, but for some reason, the href isn't linking properly.  Can anyone help me with this?

 

  $titlehigh = preg_replace ( "'($var)'si" , "<strong> \1</strong>" , $row_linkcat[ 'sid' ] );
  $linkhigh = preg_replace ( "'($var)'si" , "<strong> \1</strong>" , $row_linkcat[ 'title' ] );
  $linkdesc = preg_replace ( "'($var)'si" , "<strong> \1</strong>" , $row_linkcat[ 'creator' ] );
  $filehigh = preg_replace ( "'($var)'si" , "<strong> \1</strong>" , $row_linkcat[ 'file' ] );
  $linkpic = preg_replace ( "'($var)'si" , "<strong> \1</strong>" , $row_linkcat[ 'parent' ] );

foreach($trimmed_array as $trimm){
    if($trimm != 'b' ){
        $titlehigh = preg_replace( "'($trimm)'si" ,  "<strong> \1</strong>" , $titlehigh);
     }
//end highlight

?>
<p>

<center>

<?php echo "<a href='http://www.wootability.com/WootStrips/newstrips.php?id='" . $linkpic . "'>$linkhigh</a>"; ?><br />

 

For some reason, the href is just a blank id.  I'd be very appreciate if anyone could help.  Thanks!

Link to comment
https://forums.phpfreaks.com/topic/211953-echo-a-href/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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