Added database reset commands and fixed product_details

This commit is contained in:
Paul committed 2014-01-03 22:18:32 +00:00
1 parent 4cabc12a29
commit b16471ad80
2 files changed
+7 -3

No files matched your search

+3 -3
View File
@@ -53,10 +53,10 @@
/**
* Maak verbinding met de database
*/
$connection = mysql_connect('localhost', 'webshop_sql1', 'pass')
$connection = mysql_connect('localhost', 'webshop', 'pass')
or die('Kan geen verbinding maken met MySQL');
$db = mysql_select_db('webshop', $connection)
$db = mysql_select_db('webshop_sql1', $connection)
or die('Could not select database');
$query = 'SELECT naam, afbeelding, beschrijving, prijs FROM producten WHERE id = ' . $_GET['id'];
@@ -94,4 +94,4 @@ mysql_close($connection);
</div>
<!-- MainBody End ============================= -->
</body>
</html>
</html>