Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Shoutbox tbl

Parašė samsung123· 2009 Bir. 23 17:06:20
#1

Va pasidirbau shoutbox per vidury dabar reikia zinutes suskirstyt i tbl1 ir tbl2 koda turiu, isidedu no error, bet jokio pakitimo. rodau ka turiu.

cia zinuciu atvaizdavimas

if (dbrows($result) != 0) {
   $i = 0;
   while ($data = dbarray($result)) {
      echo "<span class='shoutboxname'><img src='".THEME."images/bullet.gif' alt=''> ";
      if ($data['user_name']) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>".$data['user_name']." </a>\n";
      } else {
         echo $data['shout_name']."\n";
      }
      echo "</span>\n<span class='shoutboxdate'>| ".showdate("shortdate", $data['shout_datestamp'])."</span>";
      if (iADMIN && checkrights("S")) {
         echo "\n[<a href='".ADMIN."shoutbox.php".$aidlink."&amp;action=edit&amp;shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a>]";
      }
      echo "<br>\n<span class='shoutbox'>".parsesmileys($data['shout_message'])."</span>\n";
      if ($i != $numrows) echo "<br>\n";
   }
   if ($numrows > $settings['numofshouts']) {
      echo "<center>\n<img src='".THEME."images/bullet.gif' alt=''>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a>
<img src='".THEME."images/bulletb.gif' alt=''></center>\n";
   }
} else {




ir yra toks kodas:
 if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; }




kur ji normaliai patalpinti, buvau patalpines po

while ($data = dbarray($result)) {




aciu kas pades.

Redagavo samsung123· 2009 Bir. 23 17:06:10

Parašė samsung123· 2009 Bir. 23 21:06:54
#2

Up and DOWN

Parašė And2s· 2009 Bir. 23 21:06:15
#3

if (dbrows($result) != 0) {
   $i = 0;
   while ($data = dbarray($result)) {
      echo "<span class='shoutboxname'><img src='".THEME."images/bullet.gif' alt=''> ";
      if ($data['user_name']) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>".$data['user_name']." </a>\n";
      } else {
         echo $data['shout_name']."\n";
      }
      echo "</span>\n<span class='shoutboxdate'>| ".showdate("shortdate", $data['shout_datestamp'])."</span>";
      if (iADMIN && checkrights("S")) {
         echo "\n[<a href='".ADMIN."shoutbox.php".$aidlink."&amp;action=edit&amp;shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a>]";
      }
      echo "<br>\n<span class='shoutbox'>".parsesmileys($data['shout_message'])."</span>\n";
      if ($i != $numrows) echo "<br>\n";
     $i++;
   }
   if ($numrows > $settings['numofshouts']) {
      echo "<center>\n<img src='".THEME."images/bullet.gif' alt=''>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a>
<img src='".THEME."images/bulletb.gif' alt=''></center>\n";
   }
} else {




Redagavo And2s· 2009 Bir. 23 22:06:53

Parašė samsung123· 2009 Bir. 23 22:06:18
#4

isjunk smailus.

Parašė Pakartoti slaptažodį· 2009 Bir. 23 22:06:55
#5

Papostinsi šaukyklą Ignai? :s

Parašė samsung123· 2009 Bir. 23 22:06:29
#6

Tau i pm gal :D
   
Parse error: syntax error, unexpected '[' in /home/..../infusions/shoutbox_panel/shoutbox_panel.php on line 91



Redagavo samsung123· 2009 Bir. 23 22:06:23

Parašė And2s· 2009 Bir. 23 22:06:55
#7

duok 91 eilutę.

Parašė samsung123· 2009 Bir. 23 22:06:13
#8

Ten buvo [b] uzdėta, dabar meta tokį error.

Parse error: syntax error, unexpected $end in /home/...../infusions/shoutbox_panel/shoutbox_panel.php on line 102




102 eilutė:
?>



Parašė And2s· 2009 Bir. 23 22:06:42
#9

if (dbrows($result) != 0) {
   $i = 0;
   while ($data = dbarray($result)) {
 if ($i % 2 == 0) { $row_color = "tbl1"; } else { $row_color = "tbl2"; }
      echo "<span class='shoutboxname'><img src='".THEME."images/bullet.gif' alt=''> ";
      if ($data['user_name']) {
         echo "<a href='".BASEDIR."profile.php?lookup=".$data['shout_name']."' class='side'>".$data['user_name']." </a>\n";
      } else {
         echo $data['shout_name']."\n";
      }
      echo "</span>\n<span class='shoutboxdate'>| ".showdate("shortdate", $data['shout_datestamp'])."</span>";
      if (iADMIN && checkrights("S")) {
         echo "\n[<a href='".ADMIN."shoutbox.php".$aidlink."&amp;action=edit&amp;shout_id=".$data['shout_id']."' class='side'>".$locale['048']."</a>]";
      }
      echo "<br>\n<span class='shoutbox'>".parsesmileys($data['shout_message'])."</span>\n";
      if ($i != $numrows) echo "<br>\n";
     $i++;
   }
   if ($numrows > $settings['numofshouts']) {
      echo "<center>\n<img src='".THEME."images/bullet.gif' alt=''>
<a href='".INFUSIONS."shoutbox_panel/shoutbox_archive.php' class='side'>".$locale['126']."</a>
<img src='".THEME."images/bulletb.gif' alt=''></center>\n";
   }
} else {




Redagavo And2s· 2009 Bir. 24 11:06:11