Reply to Re: php 5 and mysql

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация