Josh
Thu 17th Aug '00, 3:50pm
I am working on a script that accesses a mySQL database if a variable is called (i.e. page.php?variable=here) and shows a list of options if no variable is called
I looked through a couple of PHP books and found this done with the following code:
if(isset($variable))
{
$content = "code";
}
if($variable == "")
{
$content = "code";
}
print($content);
When I access the page, however, it does not access the mySQL database (with a variable) or show the options (without a variable).
Any ideas on how I should do this?
I looked through a couple of PHP books and found this done with the following code:
if(isset($variable))
{
$content = "code";
}
if($variable == "")
{
$content = "code";
}
print($content);
When I access the page, however, it does not access the mySQL database (with a variable) or show the options (without a variable).
Any ideas on how I should do this?