|
Posted by steve on 06/20/05 23:34
i set the permissions for read/execute for the IUSR_ account and restarted
iis.
no luck...any other guesses?
thanks.
"Joseph Melnick" <jmelnick@jphp.com> wrote in message
news:oq6dnWSb1slInyrfRVn-uw@rogers.com...
| Steve Wrote:
|
| "steve" <a@b.com> wrote in message news:LdDte.3952$Gp.277@fe04.lga...
| > ok, i'm still getting the fatal error:
| >
| > Fatal error: Call to undefined function mysqli_connect() in
| > C:\Inetpub\wwwroot\dev\inc\functions.php on line 8
| >
| > here's the basic php i'm using:
| >
| > function dbFetchAssoc($sql)
| > {
| > global $dbHost;
| > global $dbDatabase;
| > global $dbUserName;
| > global $dbPassword;
| > $db = mysqli_connect($dbHost, $dbUserName, $dbPassword,
| > $dbDatabase) or die(mysqli_error());
| > $records = mysqli_query($sql, $db) or die(mysqli_error());
| > $assocArray = array();
| > $fieldCount = mysqli_num_fields($records);
| > $recordIndex = 0;
| > while ($record = mysqli_fetch_array($result, MYSQL_ASSOC))
| > {
| > for ($i = 0; $i < $fieldCount; $i++)
| > {
| > $columnName = mysqli_field_name($record, $i);
| > $columnValue = $record[$columnName];
| > $assocArray[$recordIndex][strtoupper($columnName)] = $columnValue;
| > }
| > $recordIndex++;
| > }
| > mysqli_free_result($records);
| > mysqli_close($db);
| > return $assocArray;
| > }
| >
|
| Hello Steve,
|
| Did you restart your web server?
|
| Check the permissions on the php_mysqli.dll It may be blocked by your
| operating system.
|
| Joseph Melnick
| JM Web Consultants
| http://www.jphp.com/
|
|
|
|
[Back to original message]
|