Jump to content

Coding Help


Anique

Recommended Posts

Hey Guyz i want to learn some php :) so i have buy some tutorial form phpvideostutorials here i m doing some dynamic gallery so i m confused in that video first chapter is template so i have started coded code is like this

 

<?php
$view = empty($GET['view']) ? 'index' : $_GET['view'];
switch ($view) {

  case "index":
  echo "this is a index view";
  break;

  case "create":
  echo"this is a create view";
  break;
}
?>

 

this is working fine with me in like index.php but in that movie he open next page

 

index.php?view=create

 

 

when i m opening this i m getting error no files found on server he have no make other page of create

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.