If you know some of the problems above, you can write on the comments, or you can write to the
A:
The error is likely in your database column names.
When creating the column names, do not use spaces in the names.
Instead, create the column names like:
`columnName` as `columnName`
You can now update the database and the user interface of your application will work.
Addendum:
It might be useful to know that spaces can be used in MySQL and SQL queries, as long as you put them in quotes. So in your database query, you can use spaces in the column names.
The reason for this is that a space is treated as a special character by most database engines.
So for example, you can use a space in a column name to create a primary key.
CREATE TABLE `Books` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
)
The above query will create a primary key called "id". And if we want to add a new record, we will write a query like
insert into `Books` (`name`) values ('My Book')
The above query will work fine. The database engine knows that we want to add a new record because we are writing a query which does not have spaces in the column names.
Q:
Where to download a code written in Haskell?
When I'm downloading some Haskell code, it usually has one.hs file. Where are those files supposed to be? Where do I download them from? How do I know when a project's master branch has a new commit? Do I check it from the GitHub or the sourceforge? I don't even know which one to use.
A:
Where do I download them from?
Hans has a detailed series of blog posts about the workflow for working with Haskell, from reading git and cabal get-source to actually downloading the code. Basically, the Haskell repositories are just git repositories. You can clone them from github or sourceforge.
How do I know when a project's master branch has a new commit?
There are a lot of ways to see the version history of the code, with an emphasis on the part of the ac619d1d87
Related links:
Comentarios