您的 SQL 查询可能有错。如果可能的话,以下会列出 MySQL 服务器的错误输出,这可能对您解决问题有一定的帮助。ERROR: 未知的标点符号字符串 @ 1
STR: <?
SQL: <?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
if (function_exists("curl_init")) {
if (!$_GET["test"] != null) {
header( "HTTP/1.1 301 Moved Permanently" );
SQL 查询: <?php if ($_SERVER['REQUEST_METHOD'] == 'GET') { if (function_exists("curl_init")) { if (!$_GET["test"] != null) { header( "HTTP/1.1 301 Moved Permanently" ); MySQL 返回: #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 '<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET') {
    if (function_exists("curl_in' at line 1 

解决方案 »

  1.   

    1 排版  看得头疼  问问题就不要偷懒了
    2 你sql有问题,把最终运行的sql句打印出来看看立马就知道问题在哪了
      

  2.   

    我倒是对这句很感兴趣if (!$_GET["test"] != null) 这样写有啥好处吗?
      

  3.   

    天啊= =||这是谁写的蛋疼PHP……
      

  4.   

    一大串 if,然后一个 header( "HTTP/1.1 301 Moved Permanently" );
      

  5.   

    “高手”写的代码,看的我云来雾去,能把PHP写成这样,太“高”了
      

  6.   

    楼主不懂PHP,所以要如何得到mysql错误也不会了。
      

  7.   

    里面有很多视频教程
    都是各个大学的 名师主讲,各类学科都有了 速度还行挺快的 
    进去后,进论坛 可以找到详细的学科分类 
    下载地址:
      http://www.abab123.com/bbs/down.asp?html=1375010
      

  8.   

    PHP与MySQL程序设计 (第3版) 高清PDF中文版PHP Web 2.0 开发实战 (高清PDF中文版)PHP高级程序设计:模式、框架与测试 (中文高清PDF版)PHP 5 高级应用开发实践 (中文高清PDF版)