The question link shown in the picture does not appear.
I can not, it's very important to me, please help.
Thank you.
// set link to question, answer, comment that contains the image
if($existsInPost=="Q") {
$existsInPost = $notFoundString;
}
else if($imageInPost[1]=="A") {
$existsInPost = "<a href='".$imageInPost[2]."?show=".$imageInPost[0]."#a".$imageInPost[0]."' style='margin-left:10px;font-size:11px;'>→ in answer: ".$existsInPost."</a>";
}
else if($imageInPost[1]=="C") {
// get question link from answer
$getQlink = mysql_fetch_array( qa_db_query_sub("SELECT parentid,type FROM `^posts` WHERE `postid` = ".$imageInPost[2]." LIMIT 1") );
$linkToQuestion = $getQlink[0];
if($getQlink[1]=="") {
$existsInPost = "<a href='".$linkToQuestion."?show=".$imageInPost[0]."#c".$imageInPost[0]."' style='margin-left:10px;font-size:11px;'>→ in comment: ".$existsInPost."</a>";
}
else {
// default: comment on question
$existsInPost = "<a href='".$imageInPost[2]."?show=".$imageInPost[0]."#c".$imageInPost[0]."' style='margin-left:10px;font-size:11px;'>→ in comment: ".$existsInPost."</a>";
}
}
else {
// default: question
$existsInPost = "<a href='".$existsInPost."' style='margin-left:10px;font-size:11px;'>→ in question: ".$imageInPost[0]."</a>";
}