Error when echo $_GET[“jsoncallback”]

后端 未结 5 1160
挽巷
挽巷 2021-01-29 10:30


        
5条回答
  •  情深已故
    2021-01-29 10:44

    Since you didn't write exactly what you're trying to do, i'm guessing you're trying to return a list of HTML options that a JS callback function will place in your document.

    try this:

    '.$row['name'].'' . "\n";
    }
    echo $_GET["jsoncallback"] . "('" . $options . "');";
    ?>
    

    This will first create all the options as a string, and only then build the callback.

提交回复
热议问题