RE: [PHP] setting function variables

From: Date: Thu, 07 Aug 2003 20:44:17 +0000
Subject: RE: [PHP] setting function variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-158736@lists.php.net to get a copy of this message
> Tried this and it returns errors of type: > > Warning: Wrong parameter count for mssql_result() in > c:\inetpub\wwwroot\webpage10\example\utilities\dsp_del_images.php > on line 78 > > Warning: mssql_result(): supplied argument is not a valid MS SQL-result > resource in > c:\inetpub\wwwroot\webpage10\example\utilities\dsp_del_images.php > on line 79 > > Lines 78 and 79 read like this: > > $img_numbers = $qryResults("SELECT COUNT(img_id) AS TotalImages > FROM images > WHERE category_id = '$row[0]'"); > $img_count = $qryResults($img_numbers,0,"TotalImages") > > The variables are specified as > > $runQuery = 'mssql_query'; > $qryResults = 'mssql_result'; > You are using mssql_result instead of mssql_query on line 78.

« previous php.general (#158736) next »