Menu

You have an error in your SQL syntax near ' 9

Anonymous
2002-10-15
2002-10-16
  • Anonymous

    Anonymous - 2002-10-15

    Was hat das zu bedeuten???

    You have an error in your SQL syntax near ' 9

    DANKE!!!

     
    • Andreas Kansok

      Andreas Kansok - 2002-10-15

      Meine Glaskugel verrt mir, das Du von der Artikeladministration schreibst.

      http://sourceforge.net/forum/message.php?msg_id=1616971

       
    • Anonymous

      Anonymous - 2002-10-16

      Wo musste der Eintrag den ungefhr hin? Ich kenn mich nicht wirklich aus!

      ____________________________________
      <?
      echo "<!-- limit_view.inc.php -->\n";
      if (!isset($startlimit) || $startlimit<0) {
        $startlimit=0;
      }
      if (!isset($caller) || ($caller=="main")) { $url="main.php?sess=$sess&abt=$abt&itemgr=$itemgr&startlimit="; }
      elseif ($caller=="search") {$url="search.php?sess=$sess&lookfor=$lookfor&startlimit=";}

      $endlimit=$startlimit+$view_limit;

      if (!isset($caller) || ($caller=="main")) {
        $item_result = db_query("select item.*,iteminfo.* from item,iteminfo where item.itemgrID='$itemgr' AND iteminfo.itemID=item.ID AND iteminfo.langID='$langID' AND visible='1' order by item.orderby LIMIT $startlimit, $view_limit") or db_die();
      }
      elseif ($caller=="search") {
        $item_result = db_query("select item.*,iteminfo.* from item,iteminfo where ((iteminfo.name like '%$lookfor%') OR (iteminfo.keywords like '%$lookfor%') OR (iteminfo.longdescr like '%$lookfor%')) AND iteminfo.langID='$langID' AND item.ID=iteminfo.itemID AND visible='1' order by item.orderby LIMIT $startlimit, $view_limit") or db_die();
      }
      echo "<table width=\"100%\" border=\"0\" align=\"center\" cellspacing=\"0\" cellpadding=\"2\"><tr bgcolor=\"$bgcolor3\">\n";
      if ($startlimit!=0) {
        $prevlimit = $startlimit - $view_limit;
        echo "<td align=\"left\" width=\"15%\" nowrap><a href=\"".$url."0\"><font color=\"$bgcolor1\">|&lt;</font></a></td>\n";
        echo "<td align=\"left\" width=\"15%\" nowrap>";
        if ($prevlimit > 0) {
          echo "<a href=\"".$url."$prevlimit\"><font color=\"$bgcolor1\">&lt;&lt;</font></a>";
        }
        echo "&nbsp;</td>\n";
      }
      else {
        echo "<td align=\"left\" width=\"30%\">&nbsp;</td>\n";
      }

      $slimit=$startlimit+1;
      echo "<td align=center nowrap><font color=\"$bgcolor1\">$limit_navi_0 $slimit - $endlimit  $limit_navi_1 $num_res</font></td>\n";

      if ($endlimit<$num_res) {
        $end = $num_res-$view_limit;
        echo "<td align=right width=\"15%\"> ";
        if ($end > $endlimit) {
          echo "<a href=\"".$url."$endlimit\"><font color=\"$bgcolor1\">&gt;&gt;</font></a>";
        }
        echo "&nbsp;</td>\n";
        echo "<td align=\"right\" width=\"15%\" nowrap><a href=\"".$url."$end\"><font color=\"$bgcolor1\">&gt;|</font></a></td>\n";
      }
      else {
        echo "<td align=\"left\" width=\"30%\" nowrap>&nbsp;</td>\n";
      }
      echo "</tr>\n";
      echo "</table>\n";
      echo "<!-- limit_view.inc.php -->\n";
      ?>
      ________________________________________

      Danke!

      Holger

       
    • Andreas Kansok

      Andreas Kansok - 2002-10-16

      Bitte poste nicht immer die ganzen Dateien, die kennen wir alle ;-)

      Versuche zum Beispiel gleich in der zweiten Zeile beim if noch ein || $startlimit=="" einzufgen. Das hilft auch.

      Ansonsten gehrt das verstekcte Formularfeld einfach in alle Forumlare von item.php und size.php. Bei manchen ist es drin, bei einem oder zweien habe ich es vergessen :-(

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.