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 [2017-09-01 14:54]
127.0.0.1 external edit
u1_php_databaser [2018-08-26 20:51]
Joakim Forsgren
Line 61: Line 61:
 // 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");