473,320 Members | 2,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Select with odbc_exec (php)

Pc configuration :

XAMPP per Windows Version 1.5.1
PHP Version 5.1.1
IBM DB2 ODBC DRIVER 8.01.14

the query ==> Database DB2 IBM 8.1 on Z9 with ZOS 1.9

odbc_exec($db,"SELECT * FROM RATS.TUTENTI WHERE UTENTE LIKE '$searchstring%' ORDER BY UTENTE ASC");

Warning: odbc_exec() [function.odbc-exec]: SQL error: [IBM][CLI Driver][DB2] SQL0243N Impossibile definire il cursore SENSITIVE "SQL_CURSH200C4" per l'istruzione SELECT specificata. SQLSTATE=36001 , SQL state 36001 in SQLExecDirect in C:\xampp\htdocs\xampp\Utenti Tso\User.php on line 21


Why The query without order by go ?????
If you only knew
Thank you
Oct 16 '08 #1
0 3213

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: mk | last post by:
Hi to all, I want to execte some query using odbc_exec, but i receive the following error both using odbc_exec or odbc_prepare. Connection is successful but the other functions will fail. PHP...
7
by: Karin Jensen | last post by:
Hi I am running a PHP program that connects to an Access 2000 database via ODBC: $results = odbc_exec($connection_id, $sql_select); Is it possible to sort the contents of $results? I wish to...
3
by: Richard Morton | last post by:
Hi, This is my first posting to this list, I guess a small intro should be first, been developing in PHP for sometime, mainly with Mysql and nearly always on Windows (oops, sorry). I have...
0
by: u4yk | last post by:
I posted this on php.dev, but I'd give you guys a shot. I'm running PHP 5.1.1 on a Linux box, and when I try to send an MS SQL database via ODBC, I get the following error: PHP Warning: ...
1
by: shakeel | last post by:
Hi! to all, I have some problems using php with ODBC and access database i want ot get number of row in a table. code is like <?php $link=odbc_connect("myDSN","","") or die ("Failed");...
1
by: stonicus | last post by:
// Relevant parts of my DB class (from include file) class db_connection { function __construct() { $this->con = odbc_connect('ShippingData','name','pass'); } private...
0
SimonJ621
by: SimonJ621 | last post by:
I am trying to select from a DB2 database with PHP. To my knowledge, the connection is being made, but the select statement won't run. The following is the error I receive: I can't find much...
3
SimonJ621
by: SimonJ621 | last post by:
I am trying to select from a DB2 database with PHP. To my knowledge, the connection is being made, but the select statement won't run. The following is the error I receive: I can't find much...
2
by: JoeNinja | last post by:
Im failing to update the an MS ACcess. I will appreciate Your advice. I get the error below Warning: odbc_exec() : SQL error: Too few parameters. Expected 1., SQL state 07001 in SQLExecDirect in...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.