Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 10:14

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[OpenNos] Query syntax

Discussion on [OpenNos] Query syntax within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2018
Posts: 10
Received Thanks: 4
[OpenNos] Query syntax

Hello, i'm pretty new into SQL Server, i've used MySQL time ago and maybe some things might be different or idk...
Btw, i'm making a register page for a server and i'm experiencing a problem with a query...
I'm using php oop and pdo:
Code:
$stmt = $conn->prepare("SELECT count(*) FROM dbo.Account WHERE Name = :name");
	$stmt->bindParam(":name", $username);
	$stmt->execute();
	if($stmt->rowCount()) $error = "This username already exists";
I tried a select query on Navicat too and it's extremely weird to me...
When i put:
Code:
SELECT * FROM dbo.Account WHERE Name="test"
It says that the column name "test" is not valid, it should search through the column "Name" and look for "test", what's wrong in it?
I hope to get helped as soon as possible, thank you in advance!

EDIT:
Figured out by myself, in the query i cannot use RowCount with SELECT statement, and about navicat i was typing "test" instead of 'test'
-Diamond- is offline  
Reply


Similar Threads Similar Threads
OpenNos "The project 'OpenNos.Login' failed to build."
06/19/2019 - Nostale - 11 Replies
Hello! When I put in update-database in Visual Studio I get the 'The project 'OpenNos.Login' failed to build.' error. I already did what was on the troubleshoot before I put it in. I've been at this for hours and I can't figure it out. Can someone help me please?
[OpenNos] ¿How to select the project OpenNos.DAL.EF?
05/04/2018 - Nostale - 4 Replies
Hello, I have a problem with my visual studio 2017, it turns out that to be able to give the update-database command I must have the project OpenNos.DAL.EF But the thing is that in my visual studio there is no option to select the project ... I need help!:D:D
[opennos]The project 'OpenNos.Login' failed to build.
08/03/2017 - Nostale - 9 Replies
Hello I have a problem with the package manager console to run the update- database command to opennos soon as I executes the command, he said: The project ' opennos.login ' failed to build What to do? I made the updates to Microsoft Visual Studio thank you ..
MySQL Query syntax error..
06/24/2015 - Metin2 Private Server - 0 Replies
Hallo.. Wollte grade meine Items einfügen. Leider bekomme ich folgenden Fehler: INSERT INTO `item_proto` VALUES ('35140', ''Supraya-Schwert I +0'', ''Supraya-Schwert I +0'', '1', '0', '0', '2', '32', '1', '16', '0', '10000', '10000', '231', '19', '0', '5', '1', '115', '0', '0', '7', '15', '17', '15', '0', '0', '0', '350', '370', '400', '450', '0', '0', '64992', '127', '64976', '21631', '4855', '3', '0', '0', '-1'); 1064 - You have an error in your SQL syntax; check the manual that...
[Suche]Query für "Alteklinge, Reichsklinge" &' Stichdolche NUR QUERY!
08/18/2010 - Metin2 Private Server - 1 Replies
Ich weiß ich werd nervig aber ich suche die Query's für Alteklinge, Reichsklinge &' Strichdolche Why? Naya, weil ich in der DB i-wie nur Drachenmaulglocke hab ... not more -.- Auf jeden Fall Icon's etc. etc. etc. hab ich ich brauche nur die Query's



All times are GMT +1. The time now is 10:14.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.