Peter Stuifzand

Fibonacci for web developers

We start by creating a database table. This is very important for web applications, because web applications can’t store state in memory, like desktop applications.

    `n`    INT  NOT NULL,
    `fib`  INT  NOT NULL,
    PRIMARY KEY (`n`)

Now we write the PHP code. You can write the HTML form yourself, it’s not that hard.

Do you write code like this? I know I do.

© 2023 Peter Stuifzand