I have this code. It echo’s everything from my database. i only want one item to showup from my database. And I want to be able to say which one i want to echo (using ‘id’)
here is my code.
//the code to connect to database goes here
$i=1;
while($row = mysql_fetch_assoc($gettable)){
echo $row['title'];
$i++;
}
assume there are no errors and this works. Tell me how I would echo only one ‘id’ of my choice. hurry, this would be really helpful.