• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Configure PHP Service

New Here ,
Sep 17, 2010 Sep 17, 2010

Copy link to clipboard

Copied

Unbenanntes Bild.png

I tried to configure PHP to access a mySQL DB. After installing the Zend Framework (on a QNAP 659 device) I had to update php.ini to find the path. Now I get one step further, but the message above message appears.

I am using FlashBuilder 4 and used the wizard "Connect to Data/Service...".

The php looks like:

<?php
class EmployeeService {
    public function getEmployees() {
        $connection = mysqli_connect ("localhost", "root", "root", "test", 8888) or die(mysqli_connect_error());
        $sql = "SELECT * FROM employees";
        $result = mysqli_query ($connection, $sql) or die('Query failed: ' . mysqli_error($connection));
        $rows = array();
        while ($row = mysqli_fetch_object ($result)) {
            $rows[] = $row;
        }
        return $rows;
    }
}
?>

The SQL-DB is accessable via phpMyAdmin. All seems to look fine.

Can someone give me a hint where to search?

Thanks Wolfram

Views

404

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 28, 2010 Sep 28, 2010

Copy link to clipboard

Copied

LATEST

Did you check the amf_config.ini file?  It says to set the production value to false instead of true.  There is also a zend_path setting in there, make sure that is pointing to the library folder inside your Zend folder.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines