Hello...I want something like this:
When I go to index.php?id=x or index.php?name=x, if gets the same info for the record, but if I just go to index.php, it does something else. This is what I have:
if ($id OR $name) {
if ($id) {
blah blah FROM database WHILE id=$id
} elseif {
blah blah FROM database WHILE name=$name
}
(this is the individual record)
echo " . $rows[name] . ";
} else {
(this is a list of all of the records)
blah blah
}
Anyone have any ideas? Thank you very much.
~Lucky13
When I go to index.php?id=x or index.php?name=x, if gets the same info for the record, but if I just go to index.php, it does something else. This is what I have:
if ($id OR $name) {
if ($id) {
blah blah FROM database WHILE id=$id
} elseif {
blah blah FROM database WHILE name=$name
}
(this is the individual record)
echo " . $rows[name] . ";
} else {
(this is a list of all of the records)
blah blah
}
Anyone have any ideas? Thank you very much.
~Lucky13