Jump to content

DEBUG HELP!


me1000

Recommended Posts

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 32


Thanks,
Me1000
Link to comment
Share on other sites

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]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.