aboutsummaryrefslogtreecommitdiff
path: root/server/database/people.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/database/people.go')
-rw-r--r--server/database/people.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/database/people.go b/server/database/people.go
index e0930b0..ac2affa 100644
--- a/server/database/people.go
+++ b/server/database/people.go
@@ -23,7 +23,7 @@ type Person struct {
func GetAllPeople() []Person {
var allPeople []Person
rows, _ := myDatabase.Query(
- `SELECT id, Name, Phone, Email FROM People`,
+ `SELECT Name, Address, Phone, Email FROM People`,
)
var (
@@ -39,11 +39,10 @@ func GetAllPeople() []Person {
}
func RegisterPerson(person Person) bool {
-
register_person, _ := myDatabase.Prepare(
`INSERT INTO People
(Name, Address, Phone, Email)
- VALUES (?, ?, ?)`,
+ VALUES (?, ?, ?, ?)`,
)
register_person.Exec(