I created a funciton to pass two variables and create a dynamic link. It
doesn't give me an error, but it doesn't give me the results either. What
am I missing in my function? (It's down below)
Steven Samuel
function generatesectionlink($sectionID,$contentID) {
if ($sectionID == 4) {
$link = "http://www.sohh.com/thewire/read.php?contentID=$contentID";
} else if ($sectionID == 3) {
$link = "http://www.sohh.com/react/read.php?contentID=$contentID";
} else if ($sectionID == 2) {
$link = "http://www.sohh.com/sohhlive/read.php?contentID=$contentID";
} else {
$link = "http://www.sohh.com/thecore/read.php?contentID=$contentID";
}
return ($link);
}
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]