Anique Posted November 24, 2008 Posted November 24, 2008 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
Management terabyte Posted November 24, 2008 Management Posted November 24, 2008 With the code you posted above you shouldn't get any error :huh: Board Rules - Available Products - Need a Custom Work? < Don't PM me for support, post in the forum or submit a ticket from the client area instead! >
Anique Posted November 24, 2008 Author Posted November 24, 2008 OK tera when i doing like this http://10.0.1.126/photoweekly/?view=create but same getting my this is a index view i want to get this is a create view
Anique Posted November 24, 2008 Author Posted November 24, 2008 Ok Done hehe I forgot to to wire _ after $ hehe :) Thank u but do not close my topic ill ask other coding also :)
DawPi Posted November 24, 2008 Posted November 24, 2008 (edited) $view = empty($GET['view']) ? 'index' : $_GET['view']; ===> $view = empty($_GET['view']) ? 'index' : $_GET['view']; edit:orgh, u fixed already ;) Edited November 24, 2008 by DawPi IPS, Inc. Official Partner ♦ IPS Community Developer ♦ Custom Modding
Anique Posted November 26, 2008 Author Posted November 26, 2008 Hello Everyone :) I need some help i have make one website like blog i want comment box with name and message only can anybody tell me which code works??
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now