TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,230
  • Total Topics: 21,353
  • Online today: 446
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

Error in SQL Syntax??

Started by smurfyforum, April 23, 2010, 09:37:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pvcblue

I am running SMF 2.0 RC3 and TP 1.0 beta 5-1 -----

when I go into the block manager and change something insignificant like a block title and click save on the block manager page, I get this 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 's Smurf' WHERE id = 10' at line 1
File: /home/websiteserver/public_html/2inchpvc/Sources/TPortalAdmin.php
Line: 2284




here is my line 2284



$request =tp_query("UPDATE " . $tp_prefix . "blocks SET title = '" . $value . "' WHERE id = " . $where , __FILE__, __LINE__);




:o

"Smurfs, Smurfs, and More Smurfs!"

pvcblue

Lizzy Rose has asked this in another thread, combine or delete this one, mine was caused by apostrophes in a hidden title.

"Smurfs, Smurfs, and More Smurfs!"

ZarPrime

Blue,

It's not that you can't use apostrophes in block titles and other places.  It's just that there were several locations that Bloc missed during coding and those were still showing up as bugs.  We thought we caught all of those during the Alpha but a few more showed up once beta 5 was released to the public.  At this point, I think we've found just about all of those places now and Bloc has fixed them for the next update, which will be TP 1.0 beta 5-2 (or 5.2, whatever Bloc calls it). O0 ;)

ZarPrime

pvcblue

Quote from: ZarPrime on April 23, 2010, 10:16:16 AM
Blue,

It's not that you can't use apostrophes in block titles and other places.  It's just that there were several locations that Bloc missed during coding and those were still showing up as bugs.  We thought we caught all of those during the Alpha but a few more showed up once beta 5 was released to the public.  At this point, I think we've found just about all of those places now and Bloc has fixed them for the next update, which will be TP 1.0 beta 5-2 (or 5.2, whatever Bloc calls it). O0 ;)

ZarPrime

Ok good to know! Thanks......  :D

"Smurfs, Smurfs, and More Smurfs!"

This website is proudly hosted on Crocweb Cloud Website Hosting.