$value) { // echo "$name : $value
\n"; if ($name==$id){ $donePopular=TRUE; } } } ?> AnjungCafe <?php whatTitle($id); ?>
Error performing for getCompany query: " . mysql_error() . "

"); exit(); } // Display the text of each joke in a paragraph while ( $row = mysql_fetch_array($result) ) { $status=$row['status']; $toc=$row['toc']; $title=$row['title']; $content=$row['content']; $autopage=$row['autopage']; $nickname=$row['nickname']; $thedate=$row['date']; $lang=$row['language']; $markah=$row['markah']; $timesofview=$row['timesofview']; $contentid=$row['contentid']; }//while //tunjuk content all english or malay echo "$toc
 
"; // /hyperlink menu if ($lang!='malay'){ ?>

Home of | Submit your creativity to

Muka Depan | Hantar idea kreatif anda ke

$title"; echo "

"; echo ""; echo nl2br_pre($content, $wrap = 40); echo ""; //end of tunjuk content //tunjuk box markah if ($lang!='malay'){ //english lah //showcontent($contentid,$toc,$content,$title,$id,$autopage,$nickname,$thedate,status,$timesofview); showcontent($contentid,$toc,$contentid,$title,$content,$autopage,$nickname,$thedate,$status,$timesofview); } else { //if melayu call melayu funciton for viewing. tunjukcontent($contentid,$toc,$markah,$timesofview,$title,$content,$autopage,$nickname,$thedate); } }//end of function function showcontent($contentid,$toc,$contentid,$title,$content,$autopage,$nickname,$thedate,$status,$timesofview) { //hyperlink english ?> Content Statistic
Author(click view profail)
Point
Times Of View
Date
$value) { //echo "$name : $value
\n"; if ($name==$autopage){ $doneEngVote=TRUE; } } } //echo "Vote(page):$vote[$autopage]"; if (!$doneEngVote){ ?>

Please Vote

Statistik Kandungan
Penulis(klik lihat profail)
Markah Undian
Populariti
Tarikh
$value) { // echo "$name : $value
\n"; if ($name==$autopage){ $doneVote=TRUE; } } } //echo "Vote(page):$vote[$autopage]"; ?>
Sila Undi

]*?>(.|\n)*?<\/pre>/", $string, $pre1); for ($x = 0; $x < count($pre1[0]); $x++) { $pre2[$x] = preg_replace("/\s*]*?>\s*/", "", $pre1[0][$x]); $pre2[$x] = preg_replace("/([^\n]{".$wrap."})(?!<\/pre>)(?!\n)/", "$1\n", $pre2[$x]); $pre1[0][$x] = "/".preg_quote($pre1[0][$x], "/")."/"; } return preg_replace($pre1[0], $pre2, $string); } function votemark($autopage){ include "pro/figureout.inc"; $sql ="select * from contentvote where autopage='$autopage'"; //$result = @mysql_query("select * from companyid where xLoginID='$thisLogin'"); //echo $sql; $result = @mysql_query($sql); //header("Content-type: image/gif"); if (!$result) { echo("

Error performing for getCompany query: " . mysql_error() . "

"); exit(); } // Display the text of each joke in a paragraph while ( $row = mysql_fetch_array($result) ) { $totalpoint=$row['totalpoint']; $totalvoter=$row['totalvoter']; }//while if ($totalvoter==''){ echo "-"; } else{ $totalmark=$totalpoint/$totalvoter; $totalmark=round($totalmark, 2); echo $totalmark; } }//end of function function popularity($autopage){ //update popularity include "pro/figureout.inc"; $sql ="select * from content where autopage='$autopage'"; //$result = @mysql_query("select * from companyid where xLoginID='$thisLogin'"); //echo $sql; $result = @mysql_query($sql); //header("Content-type: image/gif"); if (!$result) { echo("

Error performing for getCompany query: " . mysql_error() . "

"); exit(); } // Display the text of each joke in a paragraph while ( $row = mysql_fetch_array($result) ) { $timesofview=$row['timesofview']; $adapoint=TRUE; }//while if ($adapoint){ echo $timesofview; } else { echo "-"; } }//end of function include 'c/ifoot.php'; ////function function whatContent($id,$whatitem){ //update popularity include "pro/figureout.inc"; $sql ="select * from contentregistry where contentid='$id'"; //$result = @mysql_query("select * from companyid where xLoginID='$thisLogin'"); //echo $sql; $result = @mysql_query($sql); //header("Content-type: image/gif"); if (!$result) { echo("

Error performing for getCompany query: " . mysql_error() . "

"); exit(); } // Display the text of each joke in a paragraph while ( $row = mysql_fetch_array($result) ) { $theitem=$row[$whatitem]; }//while return $theitem; }//end of function function whatTitle($id){ include "pro/figureout.inc"; $sql ="select content.*,contentregistry.toc,contentregistry.language from content inner join contentregistry on content.contentid=contentregistry.contentid where autopage='$id'"; //$result = @mysql_query("select * from companyid where xLoginID='$thisLogin'"); //echo $sql; $result = @mysql_query($sql); //header("Content-type: image/gif"); if (!$result) { echo("

Error performing for getCompany query: " . mysql_error() . "

"); exit(); } // Display the text of each joke in a paragraph while ( $row = mysql_fetch_array($result) ) { $title=$row['title']; $toc=$row['toc']; }//while echo "$toc $title" ; } ?>