Thanks for replying guys!
The code that i provided in my first post echoes:
"The best prodcut for you to use is: $title"
This is even when there is no product for that specific one, so when there is no product I want it to say "sorry" but when there is i want it to say "the best product for you to use is: $title"
while ($row= mysql_fetch_array($result3)) {
$title = $row['product'];
$link = $row['Link'];
if($title == "") {
echo "Apologies but we don't stock anything for that!";
}
echo " The best product for you to use is:<strong>$title<a target='_blank' href='$link'>Click Here To View</a></strong>" ;
}
With the above code is used no statement is echoed when $title is nothing. But it works fine when $title has a value.