TinyPortal

Development => Support => Topic started by: pvcblue on April 23, 2010, 09:37:35 AM

Title: Error in SQL Syntax??
Post by: pvcblue on April 23, 2010, 09:37:35 AM
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
Title: Re: Error in SQL Syntax??
Post by: pvcblue on April 23, 2010, 09:56:39 AM
Lizzy Rose has asked this in another thread, combine or delete this one, mine was caused by apostrophes in a hidden title.
Title: Re: Error in SQL Syntax??
Post by: 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
Title: Re: Error in SQL Syntax??
Post by: pvcblue on April 23, 2010, 11:28:21 AM
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