A syntax error occurs when a program does not follow the syntactical rules of the programming language.

learn more… | top users | synonyms

0
votes
0answers
54 views

Operator ? : surprise, surprise [duplicate]

Imagine situation int? customerId = null; // works fine int? customerId = 5; // also fine int? customerId = someCondition ? 5 : null; // There is no implicit conversion between int and null int? ...
0
votes
1answer
15 views

SQLite Subquery Syntax Error when using Multiple Columns

It seems so simple; but I can't get this working. select ISIN, QuoteTimestamp from QuoteData where (ISIN, QuoteTimestamp) IN (select ISIN, MAX(QuoteTimestamp) QuoteTimestamp from ...
-1
votes
2answers
38 views

Error while compiling in for loop

When trying to compile my file AverageRainfall.java, I keep getting an error for my variables that two symbols do not exist. I have included the affected code, which includes the two defined variables ...
0
votes
0answers
28 views

NetLogo - Sandpile Model - Error - If expected 2 inputs

As part of the setup procedure I am trying to use a slider to set the density of patches which will be displayed and assigned a random value. The slider on the interface for density ranges 0 to 100 ...
-1
votes
0answers
4 views

Zpanel repo_browser module error (ZPanel database 'query' error (42000))

i installed zpanel on ubuntu 14.04 everything is working fine but i am geting following error after installing and enbling repo_browser module Critical Error: [0144] - ZPanel database 'query' error ...
-3
votes
0answers
18 views

check the manual that corresponds to your MySQL server version for the right syntax to use near 'keywords.txt')

I am getting this error from PHP code: 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 'keywords.txt'); ...
-2
votes
0answers
11 views

iam facing best overloded mathod error in the following code plz help me

case"edit": int donor_id = Convert.ToInt32(Request.QueryString["donor_id"]); donor_detail.ActiveViewIndex = 1; DataTable dt = new DataTable(); dt ...
-1
votes
4answers
41 views

PHP Syntax error, i cant find where [on hold]

Here is the code: while($i != $unisize){ $sql2 = "SELECT * FROM suscritos WHERE sector='$uni[$i]' AND oficio='$oficio'"; $req2 = mysql_query($sql2); ...
-1
votes
1answer
18 views

Syntax error in Maya

I wouldn't normally post something so seemingly basic but I've been puzzling over this all afternoon. Maya is giving me a wonderfully non-specific 'Syntax error' whenever I try to run this code, can ...
-1
votes
2answers
37 views

bizarre syntax error with Python and IDLE 3.4 unrelated to actual text

I have a bizarre syntax error with Python and IDLE 3.4 I am reworking some old code. Large amounts of it are commented out with ''' Until yesterday, all was fine in as much as I could work on ...
0
votes
2answers
19 views

MySQL Trigger IF syntax error

I was creating some triggers (using MySQL Workbench), and got an error regarding the if statement in one of them. Here it is: CREATE DEFINER = CURRENT_USER TRIGGER ...
0
votes
2answers
27 views

Python Runtime error (SyntaxErrorException): default value must be specified here

I have the following code class PV_gen(object): def __init__(self,_name,surfacename_,performance_type = "PhotovoltaicPerformance:Simple",performance_name,_integrationmode,No_parallel,No_series): ...
0
votes
1answer
14 views

PHP alternative syntax not working

PHP alternative syntax is not working in the website i'm working on. it's using what appears to be a home-rolled templating framework solution (as i can't really discern which one it might be). that ...
-3
votes
1answer
31 views

Why do I get a MySQL syntax error even though the cell updates correctly?

The error thrown: 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 '' at line 1 The relevant code: $update = ...
0
votes
1answer
31 views

Code::Blocks, process terminated with status 2 unexpected “(” C programming language

I've just installed Code::Blocks. To check if it all worked I created a new project I made a hello world program in C that went like this. #include<stdio.h> main() { printf("hello, world"); } ...
0
votes
2answers
28 views

SML: syntax error: replacing FUN with VAL

I am trying to write a function in ml that works like a for loop (yes i know its not how the language is supposed to work). So here is my code so far: fun for (f:int->unit) start_i:int end_i:int = ...
0
votes
1answer
20 views

Error-message when using ClusterSEs package, command cluster.im

I have to adjust logistic regression model for cluster standard errors. For this purpose I use the package ClusterSEs and the command cluster.im. I have to levels in the dataset Tbf2: Individual and ...
0
votes
4answers
60 views

Java - parse string of pseudo code and verify syntax [duplicate]

Let's say I have the following string: if(something){ /* do stuff */ }else if(something_else){ /* do other stuff */ }else{ /* do stuff once more *} What I want is to verify that the if syntax in ...
0
votes
1answer
17 views

Recursive Flight Paths Code VBA Syntax Error

When I run this code, I get syntax error. I cannot understand reason. I paste all my code. if you need, i can add datas. I want to write recurvise code to find all possible flight rote under time ...
0
votes
0answers
13 views

JavaScript unexpected string using Dictionary Collection

creating a short menu using collections. If you run the code it works fine, but when I go back and insert this piece of code into any menuItem the result is an unexpected string. I can't figure out if ...
0
votes
1answer
14 views

Combine two fields in Ms Access through queries

have two fields in MS Access, one is a "date/time" datatype and the other a "short text" datatype. the date/time datatype is a date format: mm/dd/yyyy the short text datatype is a time 24hr format: ...
-1
votes
2answers
28 views

ERROR : “You have an error in your SQL syntax; check the manual that > corresponds to your MySQL server ”

I got an error while using function below , I'm writing Plug-in for WordPress : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right ...
0
votes
1answer
19 views

JavaScript - Uncaught ReferenceError: KEY is not defined [ SOLVED ]

I'm reading a book on creating games with HTML5 and have problem with this code.no matter what i do i can't make it work.i removed descriptions from code so it's less to read.and all the code here is ...
-6
votes
1answer
39 views

Online prompt Java : external error or my own error?

Now let's have our code make a joke. Read the code and comments below. We want to move that prompting code into a do while loop. Wrap the code into a do while code block and check in the while ...
-2
votes
0answers
25 views

Lua function causing an error

Creating a function that seems to have an error. I have a parameter named ID and I want to create a function as follows: ( function() then my_list = { ["123"] = true, ...
0
votes
1answer
29 views

Pivot error SQL query (Incorrect syntax near the keyword 'with'. If this statement is a common table expression…)

I am very new in this site. I have a query that pivot 2 joins query. I am getting Incorrect syntax near the keyword 'with'. If this statement is a common table expression, an xmlnamespaces clause or a ...
0
votes
2answers
44 views

Python - if or if invalid syntax error

I have the following line of code in Python: if (sheet1.cell_value(i,8).lower()==sheet2.cell_value(0,j).lower() or (if hasattr(sheet2.cell_value(2,j), 'lower'): if ...
-1
votes
0answers
17 views

Query Google spreadsheet doesnt work

tutorial 2012 https://www.youtube.com/watch?v=R3DIVDNEslc docs.google.com source.. /spreadsheet/ccc?key=0Am5Xsf1r3lGjdEdORUItWGo5MHZOcElGYnN1RThUaEE#gid=0 query sheet.. ...
-4
votes
1answer
26 views

Java syntax error 0:11 [closed]

Hey there is this one error I can not figure out how to fix: WARNING: -1:65535: '#version' : version number deprecated in OGL 3.0 forward compatible context driver ERROR: 0:11: '}' : syntax error ...
-2
votes
2answers
24 views

Qml text element syntax error

I am getting the following- file:///C:/Qt/5.4/mingw491_32/Design1.qml:9:1: Syntax error Text { ^ This is my very simple code yet I cannot get it to run in qmlviewer import QtQuick 2.0 ...
-1
votes
0answers
18 views

Call to a member function bind_param() on a non-object php mysql error

This is my code for uploading an image to an album for an online photo album using php and mysql: <form enctype="multipart/form-data" method="post"> <?php ...
-1
votes
1answer
20 views

SyntaxError in any() test

I am pretty new to python syntax ... how do I use the or operator in this scenario? To check if files end with either '.txt' or '.sm3dump', I tried to use any(), but I got a SyntaxError: if ...
0
votes
3answers
25 views

Java error - invalid method declaration; return type required

I'm trying to complete this java program, but every time I try to compile it I get this error. Can someone figure out why my program is doing this. It seems that no matter what I do I still happen to ...
-3
votes
0answers
26 views

How to solve this syntax error [closed]

PHP Syntax Check: Parse error: syntax error, unexpected '>' in your code on line 13 <?php function amis($id) { global $userrow; if(isset($_POST['oui'])) { $time = time(); ...
0
votes
0answers
30 views

Syntax error when trying to parse arguments Python shell

I have some code that I am trying to run in a Python shell (IDLE) but there seems to be a problem with the way I am parsing arguments in the Python shell. Here is the code: # import the necessary ...
0
votes
3answers
37 views

undefined variable and error in contact form php

I am using the code below to send an email a short description. I am getting the error below and I don't understand why, <?php echo "<p class='text-danger'> $errName ...
0
votes
1answer
35 views

contact form error un defined

I am using the code below to send an email and attach an image with a short description. I am getting the error below and I don't understand why: Notice: Undefined index: name in ...
-1
votes
1answer
29 views

SyntaxError: unexpected token else (I can not find the error in my code)

I am getting a syntax error an I don't know what I did wrong. I have narrowed the possible error to this code but it gets hazy of exactly were it is after that. I a pretty sure it has something to do ...
-1
votes
3answers
28 views

Unterminated Literal String on function input

I have written a function which its input should have line-feeds in it: function goh(textt) { textt = textt.split('\n'); for(i=0; i<textt.length; i++) { textt[i] = i+'='+textt[i] ...
0
votes
2answers
27 views

Why I'm getting syntax error in SQL statement for a variable containing email address? [duplicate]

I'm using PHP, MySQL and PHPMyAdmin Following is the code from PHP file : $sql = "INSERT INTO user_login (user_id, email, token) VALUES ($user_id, $email, $token)"; I got following error for ...
1
vote
4answers
23 views

Update table's column value and showing it at the same time (PHP)

First of all, the system I am working on is a virtual HR system. Now, I have this profile.php page where the form for the applicant is located. The form is consists of her/his basic profile and ...
-2
votes
1answer
15 views

Parse error: syntax error, unexpected '.1' (T_DNUMBER) in C:\webserver\function\GrabStatus.php on line 7

I'm getting the error Parse error: syntax error, unexpected '.1' (T_DNUMBER) in C:\webserver\function\GrabStatus.php on line 7 in my websites php minecraft server ping script Here's the code I'm ...
-2
votes
1answer
24 views

Delete query can't be used

when I try to do a simple query with delete, for example delete from team there is a syntax error on from. Other query like select or insert work perfectly.
0
votes
2answers
25 views

Errors in a Simple Ruby Program

I've been having some trouble with this code. When I run it, it tells me: unexpected $end, expecting } Here's the code: puts "You have been contacted, and pooled into a secret ...
0
votes
1answer
28 views

How to catch syntax errors in included files in PHP? [duplicate]

I'm developing a plugin system, which of course needs to include the plugin files. So far everything works very well - exceptions get catched etc. But my very last wish would be to even be safe from ...
0
votes
1answer
56 views

C# SQLite syntax error (am I blind?)

I use SQLite as my database engine and my program should insert a new user into my database. But it gives me the error: SQL logic error or missing database near "group": syntax error. I can't see ...
0
votes
0answers
36 views

Operator overload error [duplicate]

I have the following code: class Pudelko{ private: int rozmiar; int* tab; public: Pudelko(int size){ this->rozmiar = size; this->tab = ...
0
votes
1answer
60 views

SQL Query - Select Query

Here are my database relations: shows(showID, title, premiere_year, network, creator, category) episode(showID, episodeID, airdate, title) showID is a foreign key to shows actor(actID, fname, ...
0
votes
2answers
22 views

OUTPUT Inserted.row in mysqli

I have the following sql table: id|email|fbid When I perform the query INSERT INTO users(email,fbid) VALUES('randomvalue','otherrandomvalue') I want to get the id of the inserted row. To do ...
0
votes
1answer
52 views

SQL Query - Having Clause

Here are my database relations: shows(showID, title, premiere_year, network, creator, category) episode(showID, episodeID, airdate, title) showID is a foreign key to shows actor(actID, fname, ...