Jump to content

Archived

This topic is now archived and is closed to further replies.

me1000

DEBUG HELP!

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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

×

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.