That's it... i have a query and then in that loop i call RetrieveStatus which also issues a select.
How can i workaround this problem?
Thanks in advance
I do a simple test that is create a new php test file with this code that uses my function RetrieveStatus:
<?php
require("information.php"); //this file has DB Info
require("Methods/GlobalFunctions.php"); //This file has Retrieve Status function
echo(RetrieveStatus($db, $user, $pass, '1'));
?>...
Do you get anything else when you add the "or die(odbc_errormsg());"
Nothing else was shown on the screen
Or just echo it by itself after having executed the query?:
echo odbc_errormsg(); returns no data
I think the limitation exist when we use the odbc_fetch_array.
I follow your suggestion but the error persists.
On the other hand, the function returns the correct result and put it in the screen. The problem is the warning that is also displayed. If i don't call my function, php returns 1...
Hi vacunita,
I thing the error happens because i can't call a functions inside the "while($registo=odbc_fetch_array($resultado))
". This is the line nº 184.
****
function RetrieveStatus($db, $user, $pass, $Status)
{
$ligacao = odbc_connect("$db", "$user", "$pass");
$comando_sql =...
Hi all,
I have a problem and i don't know how to solve it.
I'm using odbc_fecth_array to retrieve some data from my database. (See below)
while($registo=odbc_fetch_array($resultado))
{
$CreatedBy = $registo["CreatedBy"];
$CreationDate = retrieve_data_DB($registo["CreationDate"]);
$AssignTo...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.