All Questions

417
votes
12answers
345279 views

PHP Parse/Syntax Errors; and How to solve them?

Everyone runs into syntax errors. Even experienced programmers make typos. For newcomers it's just part of the learning process. However, it's often easy to interpret error messages such as: PH...
37
votes
5answers
177286 views

How can I fix MySQL error #1064?

When issuing a command to MySQL, I'm getting error #1064 "syntax error". What does it mean? How can I fix it?
259
votes
10answers
280934 views

No visible cause for "Unexpected token ILLEGAL"

I'm getting this JavaScript error on my console: Uncaught SyntaxError: Unexpected token ILLEGAL This is my code: var foo = 'bar';​ It's super simple, as you can see. How could it b...
464
votes
19answers
1318575 views

How to define a two-dimensional array in Python

I want to define a two-dimensional array without an initialized length like this: Matrix = [][] but it does not work... I've tried the code below, but it is wrong too: Matrix = [5][5] Error: T...
63
votes
4answers
123433 views

json Uncaught SyntaxError: Unexpected token :

Trying to make a call and retrieve a very simple, one line, JSON file. $(document).ready(function() { jQuery.ajax({ type: 'GET', url: 'http://wncrunners.com/admin/colors.json' ,...
55
votes
2answers
55971 views

SQL multiple join statement

When I had only one inner join in my SQL statement, it worked perfectly. I tried joining a second table, and now I am getting an error that says there is a syntax error (missing operator). What is wro...
79
votes
12answers
418757 views

What to do with "Unexpected indent" in python?

How do I rectify the error "unexpected indent" in python?
125
votes
10answers
88000 views

Why does Eclipse complain about @Override on interface methods?

I have an existing project that uses @Override on methods that override interface methods, rather than superclass methods. I cannot alter this in code, but I would like Eclpse to stop complaining abou...
15
votes
3answers
182991 views

Notice: Trying to get property of non-object error

i am trying to get data from: http://api.convoytrucking.net/api.php?api_key=public&show=player&player_name=Mick_Gibson but if i want to get player_name variable with this code: <? $js ...
35
votes
12answers
128620 views

Laravel: Error [PDOException]: Could not Find Driver in PostgreSQL

I'm trying to connect with PostgreSQL database through Laravel in order to do a php artisan migrate but doesn't seem to be directed since it's reading the database name of MySQL. Here are the comman...

Previous Next