Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
u1_php_databaser [2019-10-04 12:48]
Joakim Forsgren
u1_php_databaser [2020-09-25 09:05]
Joakim Forsgren
Line 34: Line 34:
 // 1. Koppla upp sig mot databasen // 1. Koppla upp sig mot databasen
 // server, login, password, database // server, login, password, database
-$link = mysqli_connect("localhost", "jf_select", "jf_select", "jf");+$link = mysqli_connect("localhost", "jf_select", "jf_select", "jf_select");
 // 2. Säg till databasen att man vill ha ut resultatet i utf8 // 2. Säg till databasen att man vill ha ut resultatet i utf8
 mysqli_set_charset($link, "utf8"); mysqli_set_charset($link, "utf8");