Hello I have the following url
http://www.test.nl/test.php?itemnr=123
In my database in table items2
my columns are:
itemnr | itemId | Description | etc
Because I want to show the itemnr AND the itemId on this page I have this query:
<?php
$itemnummer = intval($_GET['itemnr']);
$itemIDnummer = "SELECT DISTINCT itemId from items2 where itemnr = '" .$itemnummer. "'";
$resultaat = mysql_query($itemIDnummer) or die(mysql_error());
echo "$resultaat";
?>
Can anyone see my fault?