vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Thread Reply Subject! (https://vborg.vbsupport.ru/showthread.php?t=41482)

Webmasta XT 08-27-2002 03:23 AM

Code:

Database error in vBulletin 2.2.6:

Invalid SQL: INSERT INTO post (postid,threadid,title,username,userid,dateline,attachmentid,pagetext,allowsmilie,showsignature,ipaddress,iconid,visible) VALUES (NULL,'264','Re: I'm back','','Otaku XT','1','1030443584','0','welcome back and enjoy ur stay!  ;)','1','1','24.102.188.168','0','1')
mysql error: You have an error in your SQL syntax near 'm back','','Otaku XT','1','1030443584','0','welcome back and enjoy ur stay!  ;)'' at line 1

mysql error number: 1064

Date: Tuesday 27th of August 2002 06:19:44 AM
Script: http://www.xtreme-forumz.net/~admin1/newreply.php
Referer: http://62.95.108.21/~admin1/showthread.php?threadid=264

I get that error..... please help!

Webmasta XT 08-27-2002 03:40 AM

nvm, i solved the prob, thnx anywayz

g-force2k2 08-27-2002 03:42 AM

heh i see... bad bad Xenon :p [ joking of course ]

sorry Webmasta XT didn't see what you had meant before :) but now i see...

find this code:

PHP Code:

'Re: ".$threadinfo[title]."'

and replace with:

PHP Code:

'Re: ".'".addslashes(htmlspecialchars($threadinfo[title]))."'."'

see if that solves your prob man :) regards...

g-force2k2

Xyphen 01-02-2003 12:14 AM

OK, I did this, and it doesn't work, g-force when i used ur addon, it didn't work -_-

Boofo 01-02-2003 02:15 AM

It doesn't like apostrophes and such. Do this and it will work. I just tested it. I had the same problem with one of my threads. :)

Find:

Code:

'Re: ".$threadinfo[title]."'
and replace it with this:

Code:

'Re: ".addslashes(htmlspecialchars($threadinfo[title]))."'
You were close g-force2k2, but no cigar this time. ;)


All times are GMT. The time now is 05:44 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01160 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete