http://steliyanportfolio.zzl.org/
try {
$pdo = new PDO ( 'localhost', '869276_amsteljlo', 'st08553813', 'steliyanportfolio_zzl_myportfolio' );
} catch ( PDOException $e ) {
exit ( 'Database error.' );
}
投资组合 php
include_once ('connection.php');
var_dump($pdo);
class Portfolio {
public function fetch_all(){
global $pdo;
$query = $pdo->prepare("SELECT * FROM portfolio");
$query->execute();
return $query->fetchAll();
}