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

Connect Database with FLash and Still Error

New Here ,
Dec 01, 2015 Dec 01, 2015

Copy link to clipboard

Copied

Here is my PHP code

<?php

$servername = "localhost";

$username = "root";

$password = "";

$dbname = "adaptasi";

// Create connection

$conn = new mysqli($servername, $username, $password, $dbname);

if (mysqli_connect_errno())

  {

  echo "Failed to connect to MySQL: " . mysqli_connect_error();

  }

// Perform queries

mysqli_query($conn,"SELECT isi FROM materi");

mysqli_close($conn);

?>

And its my Action Script 2

var filepath:String;

if (_url.indexOf("http") != 0) filepath = "http://localhost/adaptasi/";

else filepath = "../scripts/";

var send_lv:LoadVars = new LoadVars();

var result_lv:LoadVars = new LoadVars();

send_lv.onLoad = function(success:Boolean):Void {

   TextIsi1.text = send_lv;

}

send_lv.sendAndLoad(filepath + "morfologi.php", send_lv, "GET");

Its return error onLoad=%5Btype%20Function%5D

TOPICS
PHP

Views

269

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