Skip to content

Instantly share code, notes, and snippets.

@imme-emosol
Created December 9, 2011 08:32
Show Gist options
  • Save imme-emosol/1450743 to your computer and use it in GitHub Desktop.
Save imme-emosol/1450743 to your computer and use it in GitHub Desktop.
product detailpagina
<?php
$database_connectie = new MySQLi(
'localhost' , 'root' , '' , 'webwinkel'
);
$id = $database_connectie->real_escape_string( $_GET[ 'id' ] );
$sql = "SELECT * FROM `producten` WHERE product_id='$id' LIMIT 1 ";
$resultaat = $database_connectie->query( $sql );
$product = $resultaat->fetch_assoc();
?>
<h1>Productdetailpagina</h1>
<h2><?=$product[ 'naam' ]?></h2>
<p><?=$product[ 'beschrijving' ]?></p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment