|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-06 10:13 UTC] adasi at grubno dot da dot ru
[2002-03-06 13:33 UTC] adasi at grubno dot da dot ru
[2002-06-24 17:10 UTC] kalowsky@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 06:00:01 2025 UTC |
This function: function GetTID($kid) { $a=$kid; $conn = odbc_pconnect("$database", "$username", "$password"); $query = "select * from KontrahIO where KontrId2 = ".$kid; $table = odbc_do($conn,$query); $xi=1; odbc_fetch_row($table); while (odbc_fetch_row($table)) { $tid[$xi]=odbc_result($table,9); $a=$tid[$xi]; $xi++; } odbc_close($conn); return $tid; } works but this one: function GetTID($kid) { $database="Hetman"; $username="admin"; $password="pewnienie"; $conn = odbc_pconnect("$database", "$username", "$password"); $query = "select * from KontrahIO where KontrId2 = ".$kid; $table = odbc_do($conn,$query); $xi=1; odbc_fetch_row($table); while (odbc_fetch_row($table)) { $tid[$xi]=odbc_result($table,9); $a=$tid[$xi]; $xi++; } odbc_close($conn); return $tid; } no... It's returning nothing