My problem is the following: I want to display a single row from a sql database
Link is: /index.php?wh=1
code:
$wh_id=($_GET["wh"]);
$wh_qr=mysql_query("SELECT name FROM warehouse WHERE warehouseid = '$wh_id';");
on echo $wh_qr i get only Resource id #5, not the value of the "name" in the Database.
What do i wrong?
whileorforeachto iterate through results found (if any exist). You can't justechoa query on its own. Show us your full code.<?php echo $wh_qr ?>"