function dbx sort JZMTVCM4X7W7YFADB4RUUVFY6GDKNBMGSFHT2JQ

dbx_sortPodręcznik PHPPoprzedniNastępnydbx_sort (PHP 4 >= 4.0.6)dbx_sort --  Sort a result from a dbx_query by a custom sort function Descriptionbool dbx_sort ( dbx_result_object result, string user_compare_function) Returns TRUE on success, FALSE on error. Przykład 1. dbx_sort() example<?php function user_re_order ($a, $b) { $rv = dbx_compare ($a, $b, "parentid", DBX_CMP_DESC); if (!$rv) $rv = dbx_compare ($a, $b, "id"); return $rv; } $link = dbx_connect ("odbc", "", "db", "username", "password") or die ("Could not connect"); $result = dbx_query ($link, "SELECT id, parentid, description FROM tbl ORDER BY id"); echo "resulting data is now ordered by id<br>"; dbx_sort ($result, "user_re_order"); echo "resulting data is now ordered by parentid (descending), then by id<br>"; dbx_close ($link); ?> See also dbx_compare(). PoprzedniSpis treściNastępnydbx_queryPoczątek rozdziałudbx_compare
Wyszukiwarka

Podobne podstrony:
function dbx sort
function dbx sort
function dbx query
function yaz sort
function dbx close
function imap sort
function yaz sort
function imap sort
function dbx query
function dbx connect
function dbx compare
function dbx compare
function dbx error
function dbx error
function imap sort

więcej podobnych podstron