Current location: Hot Scripts Forums » Programming Languages » PHP » No error message...


No error message...

Reply
  #1 (permalink)  
Old 12-11-06, 04:44 PM
stormshadow's Avatar
stormshadow stormshadow is offline
Coding Addict
 
Join Date: Mar 2005
Posts: 355
Thanks: 0
Thanked 0 Times in 0 Posts
No error message...

PHP Code:

}elseif($what='p'){

        if(!
$who){
            echo
"<form action=admin.php?step=items&what=p method=post>
        Player ID: <input value=\"
$who\" name=who><br>
                <input VALUE=Continue type=submit>"
;
        }else{
            
$who1 mysql_query("SELECT * FROM member WHERE id='$who'");
            
$whonum mysql_num_rows($who1);
            if(
$whonum==0){
                echo
"ERROR: Invalid ID!";
            }else{
                
$player mysql_fetch_array($who1);
                if(
$player[staff_level]>&& $playerinfo[staff_level]<4){
                    echo
"You can't edit a staff member! If you or they need something edited, just contact Fort or Zchorri!";
                    include(
"$playerinfo[scheme_footer]");
                    exit();
                }
                if(
$add=="Y"){
                    
$amm htmlspecialchars($_POST['amm']);
                    
$tradeable htmlspecialchars($_POST['tradeable']);
                    
$nontradeable htmlspecialchars($_POST['nontradeable']);
                    
$amm str_replace(",","",$amm);
                    
$count2 0;
                    if(
$tradeable!=&& isset($tradeable) && isset($amm) && is_numeric($amm) && $amm>0){
                    
$count2++;
                        
$get_game_item mysql_query("SELECT * FROM game_items WHERE id='$tradeable' && tradeable='Y'") or die(mysql_error());
                        if(
mysql_num_rows($get_game_item)>0){
                            
$yon mysql_num_rows(mysql_query("SELECT * FROM items WHERE type='$tradeable' && owner='$player[id]'")) or die(mysql_error());
                            if(
$yon<=0){
                                 
$item mysql_fetch_array($get_game_item);
                                 
mysql_query("INSERT INTO items(owner, type, amm) VALUES('$player[id]', '$tradeable', '$amm')'") or die(mysql_error());
                                
$amm number_format($amm,0);
                                echo
"You gave <strong>$player[username] $amm $item[name]</strong><br />";
                            }else{
                                echo
"Error: They already have that! Just edit it!";
                            }
                        }else{
                            echo
"Error: Invalid Game Item: <strong>$tradeable</strong>";
                        }
                    }
//tradeable
                    
if($nontradeable && $nontradeable!=0){
                        
$yon mysql_num_rows(mysql_query("SELECT * FROM game_items WHERE id='$nontradeable' && tradeable='N'"));
                        if(
$yon>=0){
                        
$count2++;
                            
mysql_query("UPDATE member SET `$nontradeable`='Y' WHERE id='$player[id]'") or die(mysql_error());
                            echo
"You successfully gave it to <strong>$player[username]</strong>";
                            
$player[$nontradeable]='Y';
                        }
//valid game item
                    
}//nontradeable
                    
if($count2==0){
                        echo
"Nothin was added.";
                    }
                echo
"<br />
<br />"
;
                }
//Add
                
if($remove){
                    
$get_item_det mysql_query("SELECT * FROM game_items WHERE id='$remove'");
                    if(
mysql_num_rows($get_item_det)>0){
                        
$item mysql_fetch_array($get_item_det);
                        if(
$item[tradeable]=='N' && $item[id]!="gym_pass"){
                            if(!
$conf){
                            echo
"Are you sure you want to remove <strong>$item[name]</strong> from <a href=player.php?id=$player[id]>$player[username]($player[id])</a>?<br /><br />
                            <a href=admin.php?step=items&what=p&who=
$player[id]&remove=$item[id]&conf=Y>Yes, they deserve it.</a><br />
                            <a href=admin.php?step=items&what=p&who=
$player[id]>No, I made a mistake.</a>";
                            }else{
                                
mysql_query("UPDATE member SET `$item[id]`='N' WHERE id='$player[id]'");
                                
$player[$item[id]]='N';
                                echo
"You successfully removed <strong>$item[name]</strong> from <a href=player.php?id=$player[id]>$player[username]($player[id])</a><br />
                                <br />
                                <a href=admin.php?step=editdaa&who=
$player[id]>[Back to Player]</a>";
                            }
//confirm it
                        
}else{
                            if(!
$conf){
                            
$youritem = @mysql_fetch_array(mysql_query("SELECT * FROM items WHERE owner='$player[id]' && type='$item[id]'"));
                            if(!
$youritem[id]){
                                echo
"<strong>$player[username]</strong> doesn't have that item!";
                            }else{
                            echo
"<font color=red>*No confirmation message beyond this point</font><br />
                            <form name=edititem method=post action=admin.php?step=items&what=p&who=
$player[id]&remove=$item[id]&conf=edit>
                            
$item[name] <input name=\"newval\" type=\"text\" value=\"$youritem[amm]\" size=12 />
                            <br /><input name=\"EditItem\" type=\"submit\" value=\"Edit\" />
                            </form>
                            <form name=removeitem method=post action=admin.php?step=items&what=p&who=
$player[id]&remove=$item[id]&conf=remove>
                            <input name=\"RemoveItem\" type=\"submit\" value=\"Remove\" />
                            </form>"
;
                            }
                            }elseif(
$conf=="edit"){
                                
$newval str_replace(",","",$newval);
                                if(
is_numeric($newval) && $newval>0){
                                    if(
$item[id]=="gym_pass"){
                                        
mysql_query("UPDATE member SET gym_pass='$newval' WHERE id='$player[id]'");
                                        
$player[$item[id]]='$newval';
                                        echo
"You successfully edited <a href=player.php?id=$player[id]>$player[username]($player[id])</a>'s <strong>$item[name]</strong> and set it from ".number_format($player[gym_pass],0)." to "number_format($newval) .".";
                                    }else{
                                        
$youritem = @mysql_fetch_array(mysql_query("SELECT * FROM items WHERE owner='$player[id]' && type='$item[id]'"));
                                        if(!
$youritem[id]){
                                            echo
"<strong>$player[username]</strong> doesn't have that item!";
                                        }else{
                                            
mysql_query("UPDATE items SET amm='$newval' WHERE id='$youritem[id]'");
                                            echo
"You successfully edited <a href=player.php?id=$player[id]>$player[username]($player[id])</a>'s <strong>$item[name]</strong> and set it from ".number_format($youritem[amm],0)." to "number_format($newval) .".";
                                        }
//no item
                                    
}//gympass
                                
}//valid number
                            
}elseif($conf=="remove"){
                                if(
$item[id]=="gym_pass"){
                                    
mysql_query("UPDATE member SET gym_pass='0' WHERE id='$player[id]'");
                                    
$player[$item[id]]='0';
                                    echo
"You successfully removed <a href=player.php?id=$player[id]>$player[username]($player[id])</a>'s <strong>$item[name]</strong>.";
                                }else{
                                    
mysql_query("DELETE FROM items WHERE owner='$player[id]' && type='$item[id]'");
                                    echo
"You successfully removed <a href=player.php?id=$player[id]>$player[username]($player[id])</a>'s <strong>$item[name]</strong>.";
                                }
//gympass
                            
}//remove
                        
}//tradeable
                    
}//item exists
                    
echo"<br /><br />";
                }
//edit or remove item
                
echo"You are now viewing <strong><a href=player.php?id=$player[id]>$player[username]($player[id])</a>'s</strong> items.<br /><br />
<u><strong>Non-Tradeable</strong></u><br />"
;
//Non Tradeable
                
$sel_ntitems = @mysql_query("SELECT * FROM game_items WHERE tradeable='N'");
                
$count 0;
                while(
$ntitem mysql_fetch_array($sel_ntitems)){
                    if(
$ntitem[id]=="gym_pass"){
                        if(
$playerinfo[$ntitem[id]]>0){
                        
$amm number_format($player[$ntitem[id]],0);
                            echo
"Gym Pass($amm) <a href=admin.php?step=items&what=p&who=$player[id]&remove=$ntitem[id]>[Remove/Edit]</a><br />";
                            
$count++;
                        }
                    }else{
                        if(
$player[$ntitem[id]]=="Y"){
                            echo
"$ntitem[name] <a href=admin.php?step=items&what=p&who=$player[id]&remove=$ntitem[id]>[Remove]</a><br />";
                            
$count++;
                        }
                    }
                }
                if(
$count<=0){
                    echo
"None.";
                }
            
//tradeable
                
echo"<br /><u><strong>Tradeable</strong></u><br />";
                
$sel_ntitems mysql_query("SELECT gi.name AS name, p.amm AS amm, gi.id AS id FROM game_items gi, items p WHERE gi.tradeable='Y' && p.type=gi.id && p.owner='$player[id]'")or die("Error:"mysql_error() ."!");
                if(
mysql_num_rows($sel_ntitems)==0){
                    echo
"None.";
                }else{
                    while(
$items mysql_fetch_array($sel_ntitems)){
                        
$amm number_format($items[amm],0);
                        echo
"$amm - $items[name] <a href=admin.php?step=items&what=p&who=$player[id]&remove=$items[id]>[Remove/Edit]</a><br />";
                    }
                }
                
//End Disp of Items
            
echo"<form name=additems method=post action=admin.php?step=items&what=p&who=$player[id]&add=Y>Add Tradeable: <select name=tradeable>
                                <option value=0>Nothing</option>"
;
                                
$sel_ntitems mysql_query("SELECT name, id FROM game_items WHERE tradeable='Y'")or die("Error:"mysql_error() ."!");
                                if(
mysql_num_rows($sel_ntitems)>0){
                                    while(
$items mysql_fetch_array($sel_ntitems)){
                                        
$num mysql_num_rows(mysql_query("SELECT id FROM items WHERE type='$items[id]' && owner='$player[id]'"));
                                        if(
$num<=0){
                                        echo
"<option value=$items[id]>$items[name]</option>";
                                        }
//dont have items
                                    
}//all items
                                
}//get all items
                                
echo"</select>";
            echo
"<input name=\"amm\" type=\"text\" value=\"0\" size=\"7\" /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Non Tradeable: <select name=nontradeable>
                                <option value=0>Nothing</option>"
;
                                
$sel_ntitems mysql_query("SELECT name, id FROM game_items WHERE tradeable='N'")or die("Error:"mysql_error() ."!");
                                if(
mysql_num_rows($sel_ntitems)>0){
                                    while(
$items mysql_fetch_array($sel_ntitems)){
                                        if(
$playerinfo[$items[id]]!='Y'){
                                            echo
"<option value=$items[id]>$items[name]</option>";
                                        }
//has item
                                    
}//while
                                
}//get valid items
                                
echo"</select> <input name=\"AddItems\" type=\"submit\" value=\"Add\" /></form>";
                                
            }
//Success
        
}
    }elseif(
$what=="g"){
    
    } 
When I click add it it says nothing was added... but it should be.
The variables pass fine... but for some reason it wont work... any ideas as to why?
Reply With Quote
  #2 (permalink)  
Old 12-11-06, 04:55 PM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
after every mysql_query, place this:
PHP Code:

or die(mysql_error()); 

also, add this to the top of your page:
PHP Code:

error_reporting(E_ALL); 

and then post what error you get

UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #3 (permalink)  
Old 12-11-06, 06:16 PM
stormshadow's Avatar
stormshadow stormshadow is offline
Coding Addict
 
Join Date: Mar 2005
Posts: 355
Thanks: 0
Thanked 0 Times in 0 Posts
there is like one hundred errors...

well notices... lol
Code:
Notice: Use of undefined constant jailed - assumed 'jailed' in /home/lostonea/public_html/checks.php on line 204

Notice: Use of undefined constant Y - assumed 'Y' in /home/lostonea/public_html/checks.php on line 204

Notice: Use of undefined constant jailed - assumed 'jailed' in /home/lostonea/public_html/checks.php on line 209

Notice: Use of undefined constant Y - assumed 'Y' in /home/lostonea/public_html/checks.php on line 209

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 217

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 219

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 221

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 223

Notice: Use of undefined constant rank - assumed 'rank' in /home/lostonea/public_html/checks.php on line 224

Notice: Use of undefined constant username - assumed 'username' in /home/lostonea/public_html/admin.php on line 8

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/admin.php on line 22

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/admin.php on line 24

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/admin.php on line 26

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/admin.php on line 28

Notice: Use of undefined constant rank - assumed 'rank' in /home/lostonea/public_html/admin.php on line 29


Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/header.php on line 47
| House | City |
Notice: Use of undefined constant ql_hospital - assumed 'ql_hospital' in /home/lostonea/public_html/checks.php on line 88
Hospital |
Notice: Use of undefined constant ql_bank - assumed 'ql_bank' in /home/lostonea/public_html/checks.php on line 89
Bank |
Notice: Use of undefined constant gang - assumed 'gang' in /home/lostonea/public_html/checks.php on line 90
Gang Hangout |
Notice: Use of undefined constant ql_blackalley - assumed 'ql_blackalley' in /home/lostonea/public_html/checks.php on line 91
Black Alley |
Notice: Use of undefined constant ql_fc - assumed 'ql_fc' in /home/lostonea/public_html/checks.php on line 92
Fitness Center |
Notice: Use of undefined constant ql_blkm - assumed 'ql_blkm' in /home/lostonea/public_html/checks.php on line 93
Black Market |
Notice: Use of undefined constant ql_bazaar - assumed 'ql_bazaar' in /home/lostonea/public_html/checks.php on line 94
Bazaar |
Notice: Use of undefined constant ql_caves - assumed 'ql_caves' in /home/lostonea/public_html/checks.php on line 95
The Caves |
Notice: Use of undefined constant ql_bball - assumed 'ql_bball' in /home/lostonea/public_html/checks.php on line 96
The Courts |
Notice: Use of undefined constant ql_school - assumed 'ql_school' in /home/lostonea/public_html/checks.php on line 97
School |
Notice: Use of undefined constant ql_po - assumed 'ql_po' in /home/lostonea/public_html/checks.php on line 98
Post Office |
Notice: Use of undefined constant ql_bb - assumed 'ql_bb' in /home/lostonea/public_html/checks.php on line 99
Bulletin Board |
Notice: Use of undefined constant ql_find - assumed 'ql_find' in /home/lostonea/public_html/checks.php on line 100
Find Player |
Notice: Use of undefined constant ql_help - assumed 'ql_help' in /home/lostonea/public_html/checks.php on line 101
Help Documents | My Account | Logout | [Update] |
Quick Links
House
City

Notice: Use of undefined constant ql_hospital - assumed 'ql_hospital' in /home/lostonea/public_html/checks.php on line 120
Hospital

Notice: Use of undefined constant ql_bank - assumed 'ql_bank' in /home/lostonea/public_html/checks.php on line 124
Bank

Notice: Use of undefined constant gang - assumed 'gang' in /home/lostonea/public_html/checks.php on line 128
Gang Hangout

Notice: Use of undefined constant ql_blackalley - assumed 'ql_blackalley' in /home/lostonea/public_html/checks.php on line 131
Black Alley

Notice: Use of undefined constant ql_fc - assumed 'ql_fc' in /home/lostonea/public_html/checks.php on line 135
Fitness Center

Notice: Use of undefined constant ql_blkm - assumed 'ql_blkm' in /home/lostonea/public_html/checks.php on line 139
Black Market

Notice: Use of undefined constant ql_bazaar - assumed 'ql_bazaar' in /home/lostonea/public_html/checks.php on line 143
Bazaar

Notice: Use of undefined constant ql_caves - assumed 'ql_caves' in /home/lostonea/public_html/checks.php on line 147
The Caves

Notice: Use of undefined constant ql_bball - assumed 'ql_bball' in /home/lostonea/public_html/checks.php on line 151
The Courts

Notice: Use of undefined constant ql_school - assumed 'ql_school' in /home/lostonea/public_html/checks.php on line 155
School

Notice: Use of undefined constant ql_po - assumed 'ql_po' in /home/lostonea/public_html/checks.php on line 159
Post Office

Notice: Use of undefined constant ql_bb - assumed 'ql_bb' in /home/lostonea/public_html/checks.php on line 163
Bulletin Board

Notice: Use of undefined constant ql_find - assumed 'ql_find' in /home/lostonea/public_html/checks.php on line 167
Find Player

Notice: Use of undefined constant ql_help - assumed 'ql_help' in /home/lostonea/public_html/checks.php on line 171
Help Documents
My Account
Logout
[Update]
Statistics

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/header.php on line 67

Notice: Use of undefined constant level - assumed 'level' in /home/lostonea/public_html/header.php on line 68

Notice: Use of undefined constant wallet - assumed 'wallet' in /home/lostonea/public_html/header.php on line 69

Notice: Use of undefined constant bank - assumed 'bank' in /home/lostonea/public_html/header.php on line 70

Notice: Use of undefined constant jewels - assumed 'jewels' in /home/lostonea/public_html/header.php on line 71

Notice: Use of undefined constant goldcoins - assumed 'goldcoins' in /home/lostonea/public_html/header.php on line 72

Notice: Undefined index: goldcoins in /home/lostonea/public_html/header.php on line 72

Notice: Use of undefined constant energy - assumed 'energy' in /home/lostonea/public_html/header.php on line 73

Notice: Use of undefined constant life - assumed 'life' in /home/lostonea/public_html/header.php on line 75

Notice: Use of undefined constant newlife - assumed 'newlife' in /home/lostonea/public_html/header.php on line 75

Notice: Use of undefined constant fight - assumed 'fight' in /home/lostonea/public_html/header.php on line 76

Notice: Use of undefined constant newfight - assumed 'newfight' in /home/lostonea/public_html/header.php on line 76

Notice: Use of undefined constant strength - assumed 'strength' in /home/lostonea/public_html/header.php on line 77

Notice: Use of undefined constant agility - assumed 'agility' in /home/lostonea/public_html/header.php on line 78

Notice: Use of undefined constant endur - assumed 'endur' in /home/lostonea/public_html/header.php on line 79
Your ID: 1
Level: 500
Wallet: 450,007.00
Bank: 2,768,878.13
Jewels: 6
Gold Coins: 0
Energy: 7,316
Stats
Life: 42,879/103,238
Fight: 49/50.654
Strength: 1,417.040
Agility: 1,191.110
Endurance: 1,180.770
Find Account
Name/ID:
Game Information
Date: 12/11/06 5:09:37 PM

Members: 63
Online: 1
	
Admin Options

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/admin.php on line 34

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/admin.php on line 94

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/admin.php on line 94
Nothin was added.


Notice: Undefined variable: remove in /home/lostonea/public_html/admin.php on line 137
You are now viewing Fortanuous(1)'s items.

Non-Tradeable

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 205

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 206

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 205

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 212

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 205

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 212
Underground Pass [Remove]

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 205

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 212

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 205

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 212

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 205

Notice: Use of undefined constant id - assumed 'id' in /home/lostonea/public_html/admin.php on line 212

Tradeable

Notice: Use of undefined constant amm - assumed 'amm' in /home/lostonea/public_html/admin.php on line 228
1,000 - Maplillow [Remove/Edit]

Notice: Use of undefined constant amm - assumed 'amm' in /home/lostonea/public_html/admin.php on line 228
1,838 - Tulipdilly [Remove/Edit]

Notice: Use of undefined constant amm - assumed 'amm' in /home/lostonea/public_html/admin.php on line 228
100 - Tin [Remove/Edit]

Notice: Use of undefined constant amm - assumed 'amm' in /home/lostonea/public_html/admin.php on line 228
2 - Copper [Remove/Edit]

Notice: Use of undefined constant amm - assumed 'amm' in /home/lostonea/public_html/admin.php on line 228
13 - Gold [Remove/Edit]

Notice: Use of undefined constant amm - assumed 'amm' in /home/lostonea/public_html/admin.php on line 228
325 - Coal [Remove/Edit]
Add Tradeable:          Non Tradeable:
	
Chat

Notice: Use of undefined constant sban - assumed 'sban' in /home/lostonea/public_html/checks.php on line 48

Notice: Use of undefined constant messege - assumed 'messege' in /home/lostonea/public_html/checks.php on line 52

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 53

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 55

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 57

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 59

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 61
Fortanuous(1): nothin you

Notice: Use of undefined constant messege - assumed 'messege' in /home/lostonea/public_html/checks.php on line 52

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 53

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 55

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 57
LilDemon(86): whaddup D

Notice: Use of undefined constant messege - assumed 'messege' in /home/lostonea/public_html/checks.php on line 52

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 53

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 55

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 57

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 59

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 61
Fortanuous(1): yeah i know.. thats what i thought.. i hate right links and such... but some ppl like so i gave it to em :-P

Notice: Use of undefined constant messege - assumed 'messege' in /home/lostonea/public_html/checks.php on line 52

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 53

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 55

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 57

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 59
Masta D(4): great if stats were on the left though

Notice: Use of undefined constant messege - assumed 'messege' in /home/lostonea/public_html/checks.php on line 52

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 53

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 55

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 57

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 59
Masta D(4): horrible

Notice: Use of undefined constant messege - assumed 'messege' in /home/lostonea/public_html/checks.php on line 52

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 53

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 55

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 57
Frenchy(31): old one is better

Notice: Use of undefined constant messege - assumed 'messege' in /home/lostonea/public_html/checks.php on line 52

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 53

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 55

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 57

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 59

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 61
Fortanuous(1): me too :-/

Notice: Use of undefined constant messege - assumed 'messege' in /home/lostonea/public_html/checks.php on line 52

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 53

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 55

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 57

Notice: Use of undefined constant staff_level - assumed 'staff_level' in /home/lostonea/public_html/checks.php on line 59
Lexa(15): i like old one more


Notice: Undefined variable: aboutboard in /home/lostonea/public_html/footer.php on line 18

Notice: Undefined variable: postthingon in /home/lostonea/public_html/footer.php on line 37

Notice: Use of undefined constant yes - assumed 'yes' in /home/lostonea/public_html/footer.php on line 37
Anyway... none of which are in admin.php and are inbetween the lines 99-136

Please help!
Reply With Quote
  #4 (permalink)  
Old 12-11-06, 06:31 PM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
Allright then

I took a look at your code (i assumed "Nothin was added" was the message you got as you said in your first post), and i only found 3 possibilities, and two of them have the same source. Either:
PHP Code:

if($tradeable!=&& isset($tradeable) && isset($amm) && is_numeric($amm) && $amm>0){ 

or:
PHP Code:

if($nontradeable && $nontradeable!=0){ 

return false.
Both will be caused when the following vars have the wrong values. If you would check these, i think you will find out why you get this message.
PHP Code:

$amm htmlspecialchars($_POST['amm']);

$tradeable htmlspecialchars($_POST['tradeable']);
$nontradeable htmlspecialchars($_POST['nontradeable']);
$amm str_replace(",","",$amm); 
The third possible cause might be this query:
PHP Code:

$yon mysql_num_rows(mysql_query("SELECT * FROM game_items WHERE id='$nontradeable' && tradeable='N'")); 

if you have an error in it, normally you would get "Error: mysql_num_rows result is not a valid resource" or something similar. But if it returns 0, $count2++ will not be incremented, and you might get the "Nothin added" message

as it is very difficult for us to understand what you're doing (i think you'r building a game right? ), it's hard to give detailed debugging information and sollutions (understanding this entire code requires an hour or 2).

I recommend you to rewrite this entire code: i might be wrong, but i think you can clean this code up a bit, so it's easier to understand for both of us

Anyway: have fun building your game (i'm working on a game myself for 3 years now). If you still can't figure it out, you will have to give more information about what the code does, and what's in those variables i posted above.

UnrealEd
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks


Last edited by UnrealEd; 12-11-06 at 06:34 PM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP upload prob minority ASP 1 06-27-05 08:35 AM


All times are GMT -5. The time now is 05:50 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.