테스트 사이트 - 개발 중인 베타 버전입니다

메인페이지 최하단 에러가 뜨네요..

구찌s 10년 전 조회 5,951

select * from where po_start_date < '2015-10-11 16:52:46' and po_end_date > '2015-10-11 16:52:46' and po_openchk = '1'

1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where po_start_date < '2015-10-11 16:52:46' and po_end_date > '2015-10-11 16:52:' at line 1

error file : /main.php

 

이런에러가 메인페이지 최 하단에 뜨는데..... 무슨 에러인가요?

 

메인페이지 소스는요

 

</p><p><script type="text/javascript"></p><p>  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-16769464-1']);
  _gaq.push(['_trackPageview']);</p><p>  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? '<a href="<a href="https://ssl" target="_blank" rel="noopener noreferrer">https://ssl</a>"><a href="https://ssl" target="_blank" rel="noopener noreferrer">https://ssl</a></a>' : '<a href="<a href="http://www" target="_blank" rel="noopener noreferrer">http://www</a>"><a href="http://www" target="_blank" rel="noopener noreferrer">http://www</a></a>') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();</p><p></script>
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");</p><p>$main_page = "1";
$g4['title'] = "";
include_once("./_head.php");</p><p>
echo latest("basic", "photo", 7, 70); </p><p> </p><p>echo "<script language=\"javascript\" src=\"$g4[path]/js/sideview.js\"></script>\n";</p><p> </p><p> </p><p>include_once("./_tail.php");
?></p><p>
입니다.. 

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

d
10년 전

쿼리상으로는 테이블명이 없네요.

include_once("./_tail.php"); 이 소스를 살펴보세요


select * from where po_start_date < '2015-10-11 16:52:46' and po_end_date > '2015-10-11 16:52:46' and po_openchk = '1'

 

select * from 테이블명  where po_start_date < '2015-10-11 16:52:46' and po_end_date > '2015-10-11 16:52:46' and po_openchk = '1'

 

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인