krisel

Untitled

Dec 17th, 2011
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. --kjo eshte pjesa e linkut--
  2. <?ob_start();
  3. include("login.php5");
  4. include("searchNav.php5");
  5. global $login;
  6. $searchNav = new searchNav($_GET['post'],$_GET['artikulli'],$_POST['kerkesa']);
  7.  
  8. ?>
  9.  
  10. <a href="index.php5?artikulli=<?echo $searchNav->id[$i]?>">
  11. Lexo me shume &raquo;
  12. </a>
  13.  
  14. --ne kete procesohen te dhenat--
  15.  
  16. <?ob_start();
  17.  
  18. class searchNav
  19. {
  20. var $fullArticleImg ,$fullArticleTitle,$fullArticleLajmi,$fullArticleKategoria, $fullArticleNumKomente , $fullArticleUsername , $fullArticleKomente;
  21.  
  22. if($artikull)
  23. {
  24. $this->fullArticle($artikull);
  25. }
  26.  
  27. function fullArticle($artikull)
  28. {
  29. global $databaza;
  30. $q = "select * from lajmet where id='$artikull'";
  31. $result = mysql_query($q,$databaza->connection) or die (mysql_error());
  32. while($value = mysql_fetch_array($result))
  33. {
  34. $this->fullArticleImg = $value['foto'];
  35. $this->fullArticleUsername = $value['username'];
  36. $this->fullArticleKomente = $this->numKomente($value['id']);
  37. $this->fullArticleLajmi = $value['artikulli'];
  38. $this->fullArticleTitle = $value['titulli'];
  39. $this->fullArticleKategoria = $value['kategoria'];
  40. }
  41. header("location: artikulli.php5");
  42. }
  43.  
  44.  
  45. --ne kete duhet te shfaqet--
  46.  
  47. <div id="page_align">
  48.  
  49. <div class="post_module_single">
  50. <div class="post_top">
  51. <div class="post_category">
  52. <?echo $searchNav->fullArticleKategoria?>
  53. </div>
  54. <div class="post_info">
  55. <div class="post_comments">
  56.  
  57. <div class="post_module_icon">Komente&nbsp;<div class="c_c"><?echo $searchNav->fullArticleKomente?></div></div>
  58.  
  59. </div>
  60. <div class="post_calendar">
  61. <div >Nga&nbsp;<?echo $searchNav->fullArticleUsername?></div>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="post_thumb">
  66. <div class="focus">
  67. <img src="<?echo $searchNav->fullArticleImg?>&amp;h=128&amp;w=127&amp;zc=1" />
  68. </div>
  69. </div>
  70.  
  71. <div class="post_title">
  72. <h1><?echo $searchNav->fullArticleTitle."asdasdsasdasd"?></h1></div>
  73.  
  74. <!--teksti-->
  75. <div id="post-320" class="post-320 post type-post status-publish format-standard">
  76. <div class="post_content">
  77. <p><?echo $searchNav->fullArticleLajmi?></p>
  78.  
  79. </div></div> </div>
Advertisement
Add Comment
Please, Sign In to add comment