Skip to content

Commit f4c17af

Browse files
authored
Merge pull request #419 from pchemguy/main
Minor docs corrections
2 parents f15618d + 863e7c8 commit f4c17af

File tree

1 file changed

+4
-4
lines changed
  • examples/official-site/your-first-sql-website

1 file changed

+4
-4
lines changed

examples/official-site/your-first-sql-website/tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ For more information about the properties that can be set in sqlpage.json, see [
112112
![screenshot for the full sql website folder organisation](full-website.png)
113113

114114

115-
Use dynamic SQL queries to let users interact with your database
116-
=================================================================
115+
Use parameterized SQL queries to let users interact with your database
116+
======================================================================
117117

118118
### Displaying a form
119119

@@ -142,7 +142,7 @@ It uses a `WHERE` clause to make sure that the `INSERT` statement is only execut
142142
The `:Username` parameter is set to `NULL` when you initially load the page, and then SQLPage automatically sets it to the value
143143
from the text field when the user submits the form.
144144

145-
There are three types of parameters you can use in your SQL queries:
145+
There are two types of parameters you can use in your SQL queries:
146146
- `:ParameterName` is a [POST](https://en.wikipedia.org/wiki/POST_(HTTP)) parameter. It is set to the value of the field with the corresponding `name` in a form. If no form was submitted, it is set to `NULL`.
147147
- `$ParameterName` works the same as `:ParameterName`, but it can also be set through a [query parameter](https://en.wikipedia.org/wiki/Query_string) in the URL.
148148
If you add `?x=1&y=2` to the end of the URL of your page, `$x` will be set to the string `'1'` and `$y` will be set to the string `'2'`.
@@ -202,4 +202,4 @@ To access your website, enter the address of your VPS in your address bar, follo
202202

203203
For production use, you should:
204204
- run SQLPage as a service, using a tool like [docker](https://docs.docker.com/engine/reference/run/) or [systemd](https://linuxhandbook.com/create-systemd-services/).
205-
- [use a reverse proxy like *nginx*](./nginx.sql) to improve security and performance, or to configure multiple websites on the same server.
205+
- [use a reverse proxy like *nginx*](./nginx.sql) to improve security and performance, or to configure multiple websites on the same server.

0 commit comments

Comments
 (0)