me1000 Posted September 6, 2006 Share Posted September 6, 2006 Can someone please tell me what is wrong?Im guessing i forgot a ; but i cant find anything...[code]<?include("config.php");//All this grabs the content from the database, so the template page can access it!$inPageID = (is_numeric($_REQUEST['id'])) ? $_REQUEST['id'] : 1;// You remember this!if (isset($inPageID)) { // This is similar to the edit code $query = "SELECT * FROM $sTableName WHERE ID=$inPageID LIMIT 1"; $_CONTENT = mysql_fetch_array(mysql_query($query)); //define page variables $full_address = $_CONTENT['ADDRESS'] ."<br>" . $_CONTENT['CITY'] . "," . $_CONTENT['ZIP'] ; $name = "Owner:".$_CONTENT['NAME'] ; //Define long image var if ($_CONTENT['IMAGE'] == "none" ) { $image = '<img src="'.$_CONTENT['IMAGE'].'" border="1">' ; }else{ $image = '<img src="'.$_CONTENT['IMAGE'].'" width="200" height="218" border="1">' ; } //} else { // echo "Redirecting to homepage::: NOTE TO SELF: ADD REDIRECTION" ;// }?>[/code]BTW im getting a Parse error: parse error, unexpected $ in /house/includes/show_one.php on line 32Thanks,Me1000 Quote Link to comment https://forums.phpfreaks.com/topic/19844-debug-help/ Share on other sites More sharing options...
ToonMariner Posted September 6, 2006 Share Posted September 6, 2006 more likely a { } problem Quote Link to comment https://forums.phpfreaks.com/topic/19844-debug-help/#findComment-86856 Share on other sites More sharing options...
wildteen88 Posted September 6, 2006 Share Posted September 6, 2006 You have commented out the closing } for the first if statement. So change:[code]//} else { // echo "Redirecting to homepage::: NOTE TO SELF: ADD REDIRECTION" ;// }[/code]To this:[code]} // this closes the first if statement// else { // echo "Redirecting to homepage::: NOTE TO SELF: ADD REDIRECTION" ;// }[/code] Quote Link to comment https://forums.phpfreaks.com/topic/19844-debug-help/#findComment-86858 Share on other sites More sharing options...
me1000 Posted September 6, 2006 Author Share Posted September 6, 2006 Thank you that was it,I knew it was something simple!Thanks Quote Link to comment https://forums.phpfreaks.com/topic/19844-debug-help/#findComment-86860 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.