Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Laužta eilutė be <br/>

Parašė Narysx· 2008 Bir. 17 21:06:28
#7

Nu kiek aš suprantu, tai be \n neužbaigsi echo. :? :s

EDIT:
Nusišnekėjau turbūt. :D
Pasidariau taip:

   $result = dbquery("SELECT * FROM ".$db_prefix."user_ratings WHERE rate_subject = '$lookup'");
   while ($datax = dbarray($result)) $v = $v+$datax['rate_opt'];
   $res = $v;
   $vert = (dbrows($result) != 0 ? round($res/dbrows($result),2) : "Nėrssa");
   $rdata = dbarray(dbquery("SELECT * FROM ".$db_prefix."user_ratings WHERE rate_subject = '$lookup' ORDER BY rate_date DESC LIMIT 1"));
   echo "$vert";
   if (iMEMBER) {
      if (!dbcount("(*)","user_ratings","rate_user = '".$userdata['user_id']."' AND rate_subject = '$lookup'")) {
         echo " <form method='post' action='".FUSION_SELF."?lookup=$lookup'><select name='rating' class='textbox'>";
         for ($i = 1; $i < 11; $i++) echo "<option value='$i'>$i</option>";
         echo "</select> <input name='rate' type='submit' value='Vertinti' class='textbox'></form>\n";




Bet vistiek tas pats. ?|

Redagavo Narysx· 2008 Bir. 17 21:06:25