LJackson
12-02-2008, 02:52 PM
Hi All
For some reason i cant get this simple piece of code to work
print $feedID;
if ($feedID == '1' and $rssIndividual == ""){
print "no feed";
}
elseif ($feedID == '1' and $rssIndividual <> ""){
print "feeds";
}
elseif ($feedID == '2' and $rssIndividual == ""){
print "no rss feed";
}
elseif ($feedID == '2' and $rssIndividual <> ""){
print "rss feeds";
}
else {
print "error";
if i have a record in the database where by the $feedID = 2 and $rssIndividual = a web address so using the above the out put should be "rss feeds" but it is displaying "feeds" instead is there something wrong with my code above?
many thanks
Luke Jackson
For some reason i cant get this simple piece of code to work
print $feedID;
if ($feedID == '1' and $rssIndividual == ""){
print "no feed";
}
elseif ($feedID == '1' and $rssIndividual <> ""){
print "feeds";
}
elseif ($feedID == '2' and $rssIndividual == ""){
print "no rss feed";
}
elseif ($feedID == '2' and $rssIndividual <> ""){
print "rss feeds";
}
else {
print "error";
if i have a record in the database where by the $feedID = 2 and $rssIndividual = a web address so using the above the out put should be "rss feeds" but it is displaying "feeds" instead is there something wrong with my code above?
many thanks
Luke Jackson