묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
php 에러를 못 고치겠습니다.
2014.06.12 16:20
<?
define('__XE__', true);
require_once("/host/home1/filenanumi/html/config/config.inc.php");
$oContext = &Context::getInstance();
$oContext->init();
$logged_info = Context::get('logged_info');
$msrl = $logged_info->member_srl;
require once("/host/home1/filenanumi/html/modules/member/member.class.php");
$sobid = $_GET['sobid'];
$oDB = &DB::getInstance();
if(!$oDB->isColumnExists("member", "obid")) $oDB->addColumn("member", "obid", "varchar","128");
$SESSION["obid"] = Context::get('sobid');
if(!$msrl) return new Object();
$query = "update xe_member set `obid` = '".$sobid."' where `member_srl` = ".$msrl;
$sql = mysql_query($query);
echo("SETTING FINISH : $sobid");
?>
이 구문의 $query에서 에러가 납니다 ㅠㅠ
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /host/home1/filenanumi/html/sobid.php
어떤게 문제일까요?
www.filenanumi.com/sobid.php?sobid=abcde
식으로 get방식으로 전송하고 있습니다.
define('__XE__', true);
require_once("/host/home1/filenanumi/html/config/config.inc.php");
$oContext = &Context::getInstance();
$oContext->init();
$logged_info = Context::get('logged_info');
$msrl = $logged_info->member_srl;
require once("/host/home1/filenanumi/html/modules/member/member.class.php");
$sobid = $_GET['sobid'];
$oDB = &DB::getInstance();
if(!$oDB->isColumnExists("member", "obid")) $oDB->addColumn("member", "obid", "varchar","128");
$SESSION["obid"] = Context::get('sobid');
if(!$msrl) return new Object();
$query = "update xe_member set `obid` = '".$sobid."' where `member_srl` = ".$msrl;
$sql = mysql_query($query);
echo("SETTING FINISH : $sobid");
?>
이 구문의 $query에서 에러가 납니다 ㅠㅠ
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /host/home1/filenanumi/html/sobid.php
어떤게 문제일까요?
www.filenanumi.com/sobid.php?sobid=abcde
식으로 get방식으로 전송하고 있습니다.
` 를 제거해 보세요.