hi,
I think I may know where the problem may be. In this segment:
$url .= urlencode("$row[title]");
replace it with this:
$url .= urlencode($row["title"]);
Because if you access an array element inside of a quoted string, then you need to add {}. So to avoid this, try the line I suggested.
Also, make sure to change the part inside the if:
$url .= urlencode("$row[info]");
to:
$url .= urlencode($row["info"]);
Let me know if this works,
-sridhar