Welcome, Guest. Please Login or Register.
August 26, 2025, 01:41:11 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  syntax error « previous next »
Pages: [1] Reply Ignore Print
Author Topic: syntax error  (Read 434 times)
Taz-Mania
Noobie
*
Posts: 3


I'm a llama!

syntax error
« on: January 15, 2002, 12:12:15 AM »
Reply with quote

who nows what this is

Inserting data package 1
Errors: Table 'banned' already exists

Inserting data package 2
Errors: You have an error in your SQL syntax near '\\\'0\\\', ID_BOARD tinyint(4) NOT NULL auto_increment, name tinytext NOT NULL' at line 1

Inserting data package 3
Errors: You have an error in your SQL syntax near '\\\'General Discussion\\\', \\\'Feel free to talk about anything and everything ' at line 1

my ips made a database en this is what i get :(
Logged
ad4ms
Noobie
*
Posts: 7


labs!

Re:syntax error
« Reply #1 on: March 04, 2002, 04:37:02 AM »
Reply with quote

Yes, I have same problems with you too on hypermart.net webhosting.

Its seems that mysql did not recognize the single quote (') characters on file yabb.sql. I've tried to delete that single quote, the result is some codes success to execute but for string that need the single quote become unrecognize as 'strings type' and cannot be isserted to mysql database.

And I think there should be make some modification on install.php. I hope there are some solutions for this thing.  :-\
« Last Edit: March 04, 2002, 04:40:07 AM by ad4ms » Logged
groundup
Disciple of Joe, Head Cleric
Mod Team
YaBB God
*****
Posts: 2983


Error 309: Please notify the administrator of this

WWW
Re:syntax error
« Reply #2 on: March 04, 2002, 05:36:03 AM »
Reply with quote

i have absolutely no idea but I am going to take a wild guess and tell you to check if magicquotes is on in PHP
Logged

http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
http://www.fastfinancialfreedom.org - financial freedom is a myth
fastfinancialfreedom.org
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:syntax error
« Reply #3 on: March 04, 2002, 01:30:55 PM »
Reply with quote

Are you guys both on Hypermart?  Do you know the version of mySQL running?
Logged

ad4ms
Noobie
*
Posts: 7


labs!

Re:syntax error
« Reply #4 on: March 05, 2002, 12:45:53 AM »
Reply with quote

MySQL version on hypermart: MySQL 3.23.46-debug
and the current version of PHP on HyperMart is PHP 4.
Is that version compatible with YaBB SE?

And also, I found that install.php added backslash ( \ ) infront of all single quote & double quote strings.
So the syntax on yabb.sql become like this:

INSERT INTO boards VALUES (1, 1, \'General Discussion\', \'Feel free to talk about anything and everything in this board.\', \'\', 0, 1, 1, 0);

That syntax then supplied to mysql and mysql gave a whole error messages.
So I make some modification on install.php. I add this bold code to install.php source code after line 209:

         
   .
   .
   .
$remm = "\'"; $remm2 = "'";
if((ereg(";\n?$",$line) or feof($fd)) and $query != "") {
   $query = str_replace($remm, $remm2, $query);
   counter++;
    .
    .
    .


Then I removed all the tables from previous error installation on my mysql database, and reexecute the install.php. And whala! The installation successful! But I found the files from extracted archive (*.php, *.lng, *.xml) have a same problem too, all the single & double quote in source code inside that files have that d**n backslash character. So its full of errors when I execute index.php. Uff... what da bad day..


Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:syntax error
« Reply #5 on: March 05, 2002, 12:53:20 AM »
Reply with quote

They must have magic_quotes_gpc turned off :)
Logged

ad4ms
Noobie
*
Posts: 7


labs!

Re:syntax error
« Reply #6 on: March 05, 2002, 01:02:20 AM »
Reply with quote

So what can I do Jeff? Is there any trick to solve this? Please tell me ..  :-[
Logged
Jeff Lewis
Global Moderator
YaBB God
*****
Posts: 10149


I'm a llama!

WWW
Re:syntax error
« Reply #7 on: March 05, 2002, 01:04:34 AM »
Reply with quote

Set boarddir to simply a period or use the full path...
Logged

ad4ms
Noobie
*
Posts: 7


labs!

Re:syntax error
« Reply #8 on: March 05, 2002, 01:13:58 AM »
Reply with quote

Yes, I've already do so and the cool YaBB SE is on the fly!  ;D
But, may other error occure when magic_quotes_gpc turned off Jeff? For example when installing new mod, or activate an installed mods? If yes, how I cover this?
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  syntax error « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.030 seconds with 17 queries.