PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
<?php
$section = $_GET['section'];
switch ($section)
{
case "home":
include("home.html");
break;
case "register":
include("register.html");
break;
case "tutorials_home":
include("tutorial.html");
break;
default:
include("home.html");
break;
$tutorials = $_GET['tutorial&viewing'];
switch ($tutorials)
{
case "18-classes_or_ids":
include("cassesorids.html");
}
}
?>
Thanks
I think you are confusing what index.php?section=tutorial&viewing=18-classes_or_ids means. The ampersand (&) character separates key-value pairs in a URI, so that is specifying 2 variables and their values:
section=tutorial
viewing=classes_or_ids