|
إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...
انضم الينا
#1
| ||
| ||
I am using this in one forum that has 3.8.2 running and it works great, so I don't know if 3.8.3 is causing the problem. Code: $postchars = 250; $news1 = $db->query_first('SELECT title,threadid,views,replycount,postusername,postu serid,dateline FROM ' . TABLE_PREFIX . 'thread WHERE 1 AND forumid = 34 ORDER BY dateline DESC LIMIT 0 , 1'); $news1_title = "$news1[title]"; $news1_readmore = "[Read More]"; $news1_comment = "[Post Comment]"; $news1_replies = "$news1[replycount]"; $news1_views = "$news1[views]"; $news1_post = $db->query_first('SELECT pagetext FROM ' . TABLE_PREFIX . 'post WHERE 1 AND threadid = ' . $news1[threadid] . ' ORDER BY dateline ASC LIMIT 0 , 1'); $news1_postfull = "$news1_post[pagetext]"; $news1_postshort = substr($news1_post[pagetext],0,$postchars); $news1_date = vbdate($vbulletin->options['dateformat'], $news1['dateline']); $news1_time = vbdate($vbulletin->options['timeformat'], $news1['dateline']); $news2 = $db->query_first('SELECT title,threadid,views,replycount,postusername,postu serid,dateline FROM ' . TABLE_PREFIX . 'thread WHERE 1 AND forumid = 34 ORDER BY dateline DESC LIMIT 1 , 1'); $news2_title = "$news2[title]"; $news2_readmore = "[Read More]"; $news2_comment = "[Post Comment]"; $news2_replies = "$news2[replycount]"; $news2_views = "$news2[views]"; $news2_post = $db->query_first('SELECT pagetext FROM ' . TABLE_PREFIX . 'post WHERE 1 AND threadid = ' . $news2[threadid] . ' ORDER BY dateline ASC LIMIT 0 , 1'); $news2_postfull = "$news2_post[pagetext]"; $news2_postshort = substr($news2_post[pagetext],0,$postchars); $news2_date = vbdate($vbulletin->options['dateformat'], $news2['dateline']); $news2_time = vbdate($vbulletin->options['timeformat'], $news2['dateline']); $news3 = $db->query_first('SELECT title,threadid,views,replycount,postusername,postu serid,dateline FROM ' . TABLE_PREFIX . 'thread WHERE 1 AND forumid = 34 ORDER BY dateline DESC LIMIT 2 , 1'); $news3_title = "$news3[title]"; $news3_readmore = "[Read More]"; $news3_comment = "[Post Comment]"; $news3_replies = "$news3[replycount]"; $news3_views = "$news3[views]"; $news3_post = $db->query_first('SELECT pagetext FROM ' . TABLE_PREFIX . 'post WHERE 1 AND threadid = ' . $news3[threadid] . ' ORDER BY dateline ASC LIMIT 0 , 1'); $news3_postfull = "$news3_post[pagetext]"; $news3_postshort = substr($news3_post[pagetext],0,$postchars); $news3_date = vbdate($vbulletin->options['dateformat'], $news3['dateline']); $news3_time = vbdate($vbulletin->options['timeformat'], $news3['dateline']); The error is: Quote: Database error in vBulletin 3.8.3: Invalid SQL: SELECT pagetext FROM post WHERE 1 AND threadid = ORDER BY dateline ASC LIMIT 0 , 1; MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY dateline ASC LIMIT 0 , 1' at line 1 Error Number : 1064 Request Date : Sunday, June 28th 2009 @ 0644 PM Error Date : Sunday, June 28th 2009 @ 0644 PM Script : http://www.pkmndex.com/forums/index.php Referrer : http://www.pkmndex.com/forums/forumdisplay.php?f=2 IP Address : 76.198.252.244 Username : zeroality Classname : vB_Database MySQL Version : 5.0.81-community __DEFINE_LIKE_SHARE__ |
مواقع النشر (المفضلة) |
| |
المواضيع المتشابهه | ||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
Forum Database error when trying to view one of the forums | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 07-07-2010 10:30 PM |
vB4 Get CMS section in plugin code | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 04-11-2010 05:50 PM |
Forum Problems with new regsitration on my site. error messages makes no sense | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 04-08-2010 11:50 PM |
Forums Database error in vBulletin 4.0.0 Beta 3 | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 11-13-2009 11:50 PM |
Database Error on "Mark Forums Read" | محروم.كوم | منتدى أخبار المواقع والمنتديات العربية والأجنبية | 0 | 05-26-2009 12:40 AM |