View Single Post
  #12  
Old 04-07-2011, 05:38 PM
Kaeliah's Avatar
Kaeliah Kaeliah is offline
Premium Member
 
Join Date: Sep 2010
Location: Pennsylvania, United States
Posts: 485
Gender: Female
Credits: 43,766
Kaeliah will become famous soon enough
Send a message via AIM to Kaeliah Send a message via MSN to Kaeliah
Default

Okay looking at the code there are two possible ways you could be getting the error.

PHP Code:
        if($id == "" or !is_numeric($id)){
            
$article_title $err_idnoexist;
            
$article_content $err_idnoexist_text;
        } 
PHP Code:
            else {
                
// Adoptable does not exist, show an error.

                
$article_title $err_idnoexist;
                
$article_content $err_idnoexist_text;
            } 
// End the else for if $id == $aid 
(Quite frankly the second one is VERY redundant but oh well)

As far as the code goes, the second issue would be caused by a bad mysql statement, but it looks as though it would work just fine and I'm assuming other mysql statements on your site are working...?

If the case is the first one causing the problem, it would mean the $_GET($id) is not working properly and you'd have to post the adopt.php code for me to see if there's an error though. (sorry troubleshooting can be annoying)
__________________
[My Shop] ♥ [My Blog] ♥ [Subscribe] ♥ [My Mods] ♥ [Mod TOS]
Reply With Quote