Forum Moderators: coopster
function checkos($os) {
if (ereg("Windows XP", $prodrow[4]))
print "checked";
}
$platforms = "Supported platform: ". checkos("Windows XP") .".";
print $platforms;
Turns out this only returns...
---------------------------------
Supported platform:
---------------------------------
Could anyone help on outputing the checkos function?
Thanks in advance!
I have something like this...
function checkos($os) {
$prodrow[4] = "Windows XP, Windows 2000";
if (ereg("Windows XP", $prodrow[4]))
{
$status = "checked";
} else {
$status = "invalid";
}
return $status;
}
$platforms = "Supported platform: ". checkos("Windows XP") .".";
I still get "Supported platform: "
Could it be an error with the $platforms statement?
Thanks again!