default-character-set=latin1 default-collation=latin1_swedish_ci
<?php // Create connection $dbhost = "localhost"; $dbuser = "root"; $dbpass = ""; //db connection $dsn = 'mysql:host=localhost;dbname=it409'; $db = new PDO($dsn, 'root', ''); $query = 'SELECT * FROM Product'; $statement = $db->prepare($query); $statement->execute(); $results = $statement->fetchall(); $statement->closecursor(); foreach ($results as $product) { echo $option->product_description; } ?>

Get help from top-rated tutors in any subject.
Efficiently complete your homework and academic assignments by getting help from the experts at homeworkarchive.com