Hello all,
I use a database to extract the title of a url. I want to take save this title in a variable and then check if it is url1 or url2.
If it is url1 call url1 javascript function else if url2 call url2 function.
My code is :
Code:
$query = "SELECT url FROM info";
$row = mysql_fetch_array($result);
if ($row['url']=='http://....')
{
echo '<A HREF="';
echo '<SCRIPT LANGUAGE="javascript">';
echo 'popUp("url1.php")';
echo "</SCRIPT>";
echo '">';
}
if($row['url']=='http://...')
{
echo '<A HREF="';
echo '<SCRIPT LANGUAGE="javascript">';
echo 'popUp("url2.php")';
echo "</SCRIPT>";
echo '">';
}
What is the error??
Thanks
-----------------------------------------------------------------------------
<URLs SNIPPED>