i need ur help guys if any 1 knows how to build up an gunz website for free with all basic functions thn plzzzz help me .......ty :)
i need ur help guys if any 1 knows how to build up an gunz website for free with all basic functions thn plzzzz help me .......ty :)
i've created 1 but im getting an error
Notice: Undefined index: do in F:\xampp\htdocs\includes\title.php on line 2
Notice: Undefined index: sub in F:\xampp\htdocs\includes\title.php on line 34
Notice: Undefined index: action in F:\xampp\htdocs\includes\title.php on line 70
Notice: Undefined index: act in F:\xampp\htdocs\includes\title.php on line 79
this one is frm b-2-o web
That means a variable such as $_GET['do'] or $_POST['do'] is not set or is empty while you are trying to use it.
cn u help me up wid an website please don say noo???...
Post the code here of title.php.
<?
switch ($_GET['do']){
case "":
$pagetitle = "Index";
break;
case "register":
$pagetitle = "Register new account";
break;
case "downloads":
$pagetitle = "Downloads";
break;
case "ranking":
$pagetitle = "Ranking";
break;
case "myclan":
$pagetitle = "Clans";
break;
case "itemshop":
$pagetitle = "Item Shop";
break;
case "contact";
$pagetitle = "Contact";
break;
case "login";
$pagetitle = "User Login";
break;
case "halloffame":
$pagetitle = "Hall Of Fame";
break;
}
//
switch ($_GET['sub']){
case "individual":
$pagetitle = "Individual Ranking";
break;
case "clan":
$pagetitle = "Clan Ranking";
break;
case "hof";
$pagetitle = "Hall of fame";
break;
case "viewmyitems";
$pagetitle = "View My Items";
break;
case "listallitems";
$pagetitle = "View All Items";
break;
case "help";
$pagetitle = "Help";
break;
case "details";
$pagetitle = "Item Details";
break;
case "buyitem";
$pagetitle = "Buy Item";
break;
case "announcement";
$pagetitle = "Accouncement";
break;
case "update";
$pagetitle = "Update";
break;
}
//
switch ($_GET['action']){
case "resetpwd":
$pagetitle = "Reset Password";
break;
}
//
switch ($_GET['act']){
case "viewmyitems":
$pagetitle = "View My Items";
break;
case "editinfo";
$pagetitle = "Edit User Infos";
break;
}
?>
There you go.PHP Code:<?php
if(isset($_GET['do']))
{
switch ($_GET['do'])
{
case "":
$pagetitle = "Index";
break;
case "register":
$pagetitle = "Register new account";
break;
case "downloads":
$pagetitle = "Downloads";
break;
case "ranking":
break;
case "myclan":
$pagetitle = "Clans";
break;
case "itemshop":
$pagetitle = "Item Shop";
break;
case "contact";
$pagetitle = "Contact";
break;
case "login";
$pagetitle = "User Login";
break;
case "halloffame":
$pagetitle = "Hall Of Fame";
break;
}
}
if(isset($_GET['sub']))
{
switch ($_GET['sub'])
{
case "individual":
$pagetitle = "Individual Ranking";
break;
case "clan":
$pagetitle = "Clan Ranking";
break;
case "hof";
$pagetitle = "Hall of fame";
break;
case "viewmyitems";
$pagetitle = "View My Items";
break;
case "listallitems";
$pagetitle = "View All Items";
break;
case "help";
$pagetitle = "Help";
break;
case "details";
$pagetitle = "Item Details";
break;
case "buyitem";
$pagetitle = "Buy Item";
break;
case "announcement";
$pagetitle = "Accouncement";
break;
case "update";
$pagetitle = "Update";
break;
}
}
if(isset($_GET['action']))
{
switch ($_GET['action'])
{
case "resetpwd":
$pagetitle = "Reset Password";
break;
}
}
if(isset($_GET['act']))
{
switch ($_GET['act'])
{
case "viewmyitems":
$pagetitle = "View My Items";
break;
case "editinfo";
$pagetitle = "Edit User Infos";
break;
}
}
?>
thanks alot bro :) ur very nc person.......but wen i go to address 127.0.0.1/index.php it shows up nothing cn u help for this too??
Last edited by maxy2010; 21-05-11 at 05:14 AM.
What is not showing up?
What is supposed to show up?
Are there any errors?
Did you tried to enable error_reporting on top of the page?
i started up wid blibz 1 coz i got tired of tat n now blibz is also wid errors.......old 1 was fixed but nothing was showing up,i mean the page is blank......dude i m really very upset im not able to get an single website,its so imbarassing
Last edited by maxy2010; 21-05-11 at 07:47 AM.
maxy, ill give you a shortcut.
download xampp 1.7.0, its 10X Better.
guaranteed