Php + El problems

Source: Internet
Author: User
Php + pixel El problems? PHPcode $ strSql & quot; SELECTBUYER_ID, question % & quot; $ connodbc_connect (cle, evlp, evlp, SQL _CUR_U php + pixel?
PHP code
  $ StrSql = "SELECT BUYER_ID, BUYER_NAME FROM apps. buyr_info WHERE BUYER_NAME LIKE 'a % '"; $ conn = odbc_connect ('Cle', 'evlp ', 'evlp', SQL _CUR_USE_ODBC) or die (" cannot connect to the data source "); $ result = odbc_do ($ conn, $ strSql) or die ("declaration not executed"); while (odbc_fetch_row ($ result) {$ BUYER_NAME = odbc_result ($ result, 1); echo "mm nn pp"; echo $ BUYER_NAME ;}


I run the above code
No value is obtained on the interface 《.
I separately put $ strSql into Pl/SQL to get multiple records ..

If I replace the SQL statement
SQL code
  $strSql = "SELECT BUYER_ID, BUYER_NAME FROM apps.buyr_info  ";


Now the page will be able to get a record <〈,


What is the reason...



------ Solution --------------------
Directly dump $ result.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.