You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 38 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Incorrect syntax near the keyword 'top'. [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Kinetix
Corporal
Corporal


Joined: Aug 16, 2003
Posts: 52


PostPosted: Sat Aug 16, 2003 7:23 pm Reply with quoteBack to top

Well, im a COMPLETE newbie at all this, I set this up on MySQL before with no problem, however, this time its a paid-for server which runs Windows 2000 and MSSQL 2000. I am able to run MSSQL commands on the database and change it's config, but thats about it. I dont know much abotu SQL anyway. I've set up phpBB2 on this server, but nuke doesnt seem to work.

I've also added the following lines to db/mssql.php right after function sql_query($query = "", $transaction = FALSE)
{
as it was stated in another post:

Code:
   $SQLReservedNamesRE = "/(s|,{1})(top|view|count)(s|,|={1})/i";
   $query = preg_replace($SQLReservedNamesRE, "$1[$2]$3", $query);


If anyone could help me out, id appreciate it.

Code:
Warning: MS SQL message: Incorrect syntax near the keyword 'top'. (severity 15) in D:\nuke\html\db\mssql.php on line 142

Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 142

Warning: Cannot add header information - headers already sent in D:\nuke\html\mainfile.php on line 165

Warning: Failed opening 'language/lang-.php' for inclusion (include_path='') in D:\nuke\html\mainfile.php on line 166

Warning: MS SQL message: Invalid object name 'nuke_main'. (severity 16) in D:\nuke\html\db\mssql.php on line 142

Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 142

Warning: MS SQL message: Invalid object name 'nuke_users'. (severity 16) in D:\nuke\html\db\mssql.php on line 142

Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 142

Warning: MS SQL message: Invalid object name 'nuke_session'. (severity 16) in D:\nuke\html\db\mssql.php on line 173

Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 173

Warning: MS SQL message: Invalid object name 'nuke_session'. (severity 16) in D:\nuke\html\db\mssql.php on line 142

Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 142

Warning: MS SQL message: Invalid object name 'nuke_session'. (severity 16) in D:\nuke\html\db\mssql.php on line 156

Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 156

Warning: Failed opening 'themes//theme.php' for inclusion (include_path='') in D:\nuke\html\header.php on line 31

Fatal error: Call to undefined function: themeheader() in D:\nuke\html\header.php on line 47
PHP Warning: MS SQL message: Incorrect syntax near the keyword 'top'. (severity 15) in D:\nuke\html\db\mssql.php on line 142 PHP Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 142 PHP Warning: Cannot add header information - headers already sent in D:\nuke\html\mainfile.php on line 165 PHP Warning: Failed opening 'language/lang-.php' for inclusion (include_path='') in D:\nuke\html\mainfile.php on line 166 PHP Warning: MS SQL message: Invalid object name 'nuke_main'. (severity 16) in D:\nuke\html\db\mssql.php on line 142 PHP Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 142 PHP Warning: MS SQL message: Invalid object name 'nuke_users'. (severity 16) in D:\nuke\html\db\mssql.php on line 142 PHP Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 142 PHP Warning: MS SQL message: Invalid object name 'nuke_session'. (severity 16) in D:\nuke\html\db\mssql.php on line 173 PHP Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 173 PHP Warning: MS SQL message: Invalid object name 'nuke_session'. (severity 16) in D:\nuke\html\db\mssql.php on line 142 PHP Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 142 PHP Warning: MS SQL message: Invalid object name 'nuke_session'. (severity 16) in D:\nuke\html\db\mssql.php on line 156 PHP Warning: MS SQL: Query failed in D:\nuke\html\db\mssql.php on line 156 PHP Warning: Failed opening 'themes//theme.php' for inclusion (include_path='') in D:\nuke\html\header.php on line 31 PHP Fatal error: Call to undefined function: themeheader() in D:\nuke\html\header.php on line 47
Find all posts by KinetixView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Aug 16, 2003 7:27 pm Reply with quoteBack to top

Hi can you install analyzer for us from the front page? I'd like to look at it.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Kinetix
Corporal
Corporal


Joined: Aug 16, 2003
Posts: 52


PostPosted: Sat Aug 16, 2003 7:29 pm Reply with quoteBack to top

*edit* i figured out how to put up the analyzer

after showing my config.php info, it wrote this:
Could not connect to your MySQL Database, visit Nuke Cops for support..


Last edited by Kinetix on Sat Aug 16, 2003 7:42 pm; edited 1 time in total
Find all posts by KinetixView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Aug 16, 2003 7:38 pm Reply with quoteBack to top

Hi, you can download the analyzer from our front page at the top, and then you can upload it to your server. Make sure you save it to the directory where the files

config.php
mainfile.php
modules.php

is located.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Kinetix
Corporal
Corporal


Joined: Aug 16, 2003
Posts: 52


PostPosted: Sat Aug 16, 2003 7:43 pm Reply with quoteBack to top

Yep, I put it in, but why cant it connect to the database? I have all the correct info, same info that my phpbb forum is using which works fine.
Find all posts by KinetixView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Aug 16, 2003 7:45 pm Reply with quoteBack to top

Hi can you share the link?

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Kinetix
Corporal
Corporal


Joined: Aug 16, 2003
Posts: 52


PostPosted: Sat Aug 16, 2003 7:48 pm Reply with quoteBack to top

I hope you dont mind me PMing you, I just pmed you the link. I dont know if its harmful to post the link here Razz
Find all posts by KinetixView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Aug 16, 2003 7:56 pm Reply with quoteBack to top

I must admit that phpnuke today is native linux and mysql. However, instead of "mssql" put it in as this precisely:

mSQL

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Kinetix
Corporal
Corporal


Joined: Aug 16, 2003
Posts: 52


PostPosted: Sat Aug 16, 2003 8:00 pm Reply with quoteBack to top

Fatal error: Cannot instantiate non-existent class: sql_db in D:\nuke\html\db\db.php on line 86
PHP Fatal error: Cannot instantiate non-existent class: sql_db in D:\nuke\html\db\db.php on line 86

Still has issues Confused
Find all posts by KinetixView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Aug 16, 2003 8:16 pm Reply with quoteBack to top

Do me a favor, because this hasn't been tested before to my knowledge. Change all instances of "mSQL" here to "mssql" and reset your config.php back to "mssql":

includes/sql_layer.php:/* $dbtype = "mSQL"; */
includes/sql_layer.php: case "mSQL":
includes/sql_layer.php: $dbi=msql_connect($host);
includes/sql_layer.php: msql_select_db($db);
includes/sql_layer.php: case "mSQL":
includes/sql_layer.php: $dbi=@msql_close($id);
includes/sql_layer.php: case "mSQL":
includes/sql_layer.php: $res=@msql_query($query, $id);
includes/sql_layer.php: case "mSQL":
includes/sql_layer.php: $rows=msql_num_rows($res);
includes/sql_layer.php: case "mSQL":
includes/sql_layer.php: $row = msql_fetch_row($res);
includes/sql_layer.php: case "mSQL":
includes/sql_layer.php: $row = msql_fetch_array($res);
includes/sql_layer.php: case "mSQL":
includes/sql_layer.php: $row = msql_fetch_object($res);
includes/sql_layer.php: case "mSQL":
includes/sql_layer.php: $row = msql_free_result($res);

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Aug 16, 2003 8:19 pm Reply with quoteBack to top

Oh and change "msql" to "mssql".

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Kinetix
Corporal
Corporal


Joined: Aug 16, 2003
Posts: 52


PostPosted: Sat Aug 16, 2003 8:24 pm Reply with quoteBack to top

Same problem in the analyzer, but check out index.php, it has a whole load of new errors :/
Find all posts by KinetixView user's profileSend private messageVisit poster's website
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Aug 16, 2003 8:34 pm Reply with quoteBack to top

This is my first time working on the mssql bug. It appears someone has found some stuff:

http://nukeresources.com/postp561.html

How familiar are you with the mssql underlying code? Can you give me a link I can follow and try to resolve this?

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Kinetix
Corporal
Corporal


Joined: Aug 16, 2003
Posts: 52


PostPosted: Sat Aug 16, 2003 8:50 pm Reply with quoteBack to top

I have absolutely no idea what im doing, im not familiar with SQL at all.

But I seem to have fixed the NT ANONYMOUS LOGON thing, in sql_layers line 85 or so, it was written

$dbi=mssql_connect($host);

I changed it to
$dbi=mssql_connect($host, $user, $password);
and that message was gone, but i still have the same errors as before.

I found a link somewhere on these forums about a guy who made an mssql .sql file, transporting mysql one.
Find all posts by KinetixView user's profileSend private messageVisit poster's website
Kinetix
Corporal
Corporal


Joined: Aug 16, 2003
Posts: 52


PostPosted: Sat Aug 16, 2003 8:51 pm Reply with quoteBack to top

Wahahaha! Check back on the analyze page please, i edited it and changed all "mysql" entries to "mssql". It shows all the info now...
Find all posts by KinetixView user's profileSend private messageVisit poster's website
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 1.004 Seconds - 15 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::