Dillon, John wrote:
One more bite on this code.

function queries(){
        $piv_result=mysql_db_query($db, $query, $connection) or die ("Query9
failed: $query");
        return $piv_result;

function print(){
global $piv_result;
$count_fields=mysql_num_fields($piv_result); //ERROR: //code...........

//MAIN queries();

Should this work - $piv_result is being returned from one function and then
being used in another function.  Am I missing something?

Yes, you're returning the result set, but you're not assigning it anywhere.

$rs = queries();

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

PHP|Architect: A magazine for PHP Professionals – www.phparch.com

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to