linksdb user
parent
1b342654a5
commit
71c3895e11
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$pdo = new PDO('mysql:host=localhost;dbname=links', 'root', 'test');
|
$pdo = new PDO('mysql:host=localhost;dbname=links', 'linksdb', 'linksdb');
|
||||||
|
|
||||||
$sql = "SELECT * FROM link";
|
$sql = "SELECT * FROM link";
|
||||||
foreach ($pdo->query($sql) as $row) {
|
foreach ($pdo->query($sql) as $row) {
|
||||||
|
|
Loading…
Reference in New Issue